Assuming that your data is stored in a variable price2
, you can plot the histogram of price2
with 3 bins in Matlab using the following code:
main.m203 chars11 lines
This code creates a histogram of price2
using three bins, and labels the x-axis as "Price2", the y-axis as "Frequency", and adds a title to the plot as "Histogram of Price2 with 3 Bins".
gistlibby LogSnag