loulou_lepou
Matlab_continuous_histogram
Use BAR(EDGES,N,'histc') to plot the histogram.
histogram of time to travel to work
the data table can be found here :
en.wikipedia.org/wiki/Histogram => en.wikipedia.org/wiki/File:Travel_time_histogram_total_n_...
Matlab code :
clear;clc; clf;
y=[836 2737 3723 3926 3596 1438 3273 642 824 613 215 57 ];
x= [0 5 10 15 20 25 30 35 40 45 60 90];
bar(x,y,'histc');
xlim([min(x),max(x)+20])
set(gca,'xtick',x)
title('continous histogram')
xlabel('x label')
ylabel('y label')
Matlab_continuous_histogram
Use BAR(EDGES,N,'histc') to plot the histogram.
histogram of time to travel to work
the data table can be found here :
en.wikipedia.org/wiki/Histogram => en.wikipedia.org/wiki/File:Travel_time_histogram_total_n_...
Matlab code :
clear;clc; clf;
y=[836 2737 3723 3926 3596 1438 3273 642 824 613 215 57 ];
x= [0 5 10 15 20 25 30 35 40 45 60 90];
bar(x,y,'histc');
xlim([min(x),max(x)+20])
set(gca,'xtick',x)
title('continous histogram')
xlabel('x label')
ylabel('y label')