Histogram in MatLab

Kristian

I'm a little bit stuck on how to plot a histogram in MatLab, and typing help hist in MatLab does not make me any wiser. So I would appreciate any help!

Basically my problem is very simple. I have a vector, V, with five values, where each value represent the volume of a certain layer of the Earth. I simply want to create a histogram of these data, where the x-axis in my histogram should say "Inner Core", "Outer Core", etc., while the y-axis will display the volume. I've tried using the hist-command in various ways, but I can't get this to work. For instance, if I just type hist(V), the volume-values actually show up on the x-axis, and not the y-axis.

If anyone can help me how to make this simple histogram I will be very grateful! According to the instructions on my homework, I have to use the hist-command.

vrleboss

What you actually what is a bar plot.

bar([4,20,10,3,8])

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

multiple colours on matlab histogram

From Dev

Centering histogram bins and setting percentage range in Matlab

From Dev

Combine Histogram and Cumulative Distribution Matlab

From Dev

RGB histogram using bitshift in matlab

From Dev

MATLAB how to plot a vector of probability densities on to a histogram?

From Dev

stretching histogram of image in matlab

From Dev

Histogram from Spherical Plots in Matlab

From Dev

Estimating skewness of histogram in MATLAB

From Dev

Compute a histogram() without plotting in matlab

From Dev

Distribution fitting and histogram overlay (scaling matter) - MATLAB

From Dev

Histogram intersection kernel optimization in MATLAB

From Dev

Image histogram implementation with Matlab

From Dev

MATLAB efficient histogram look up

From Dev

Matlab Image Processing - increasing contrast using histogram

From Dev

How can you plot a histogram with percentages in Matlab?

From Dev

Matlab - Histogram edges and cut off

From Dev

Histogram along one dimension in MATLAB

From Dev

a color histogram algorithm in matlab

From Dev

multiple colours on matlab histogram

From Dev

how to merge two array into single histogram in matlab

From Dev

Change histogram to curve in Matlab but not "fit"

From Dev

Get Image matrix from histogram matrix in matlab

From Dev

Conditional coloring of histogram graph in MATLAB

From Dev

Normalizing a histogram in matlab

From Dev

Custom histogram density evaluation in MatLab

From Dev

Set an x-axis of a histogram in matlab to get a subset of the histogram

From Dev

Change axis in histogram Matlab

From Dev

Histogram of labeled strings in matlab

From Dev

matlab histogram (with for loops)

Related Related

HotTag

Archive