About ploting values in array and holding them
1 回表示 (過去 30 日間)
古いコメントを表示
I have following code as function
function PlotSample(x)
figure(1);
sublot(3,1,1);
[a,b]=hist(x);
hold on;
a=100*(a./size(x,1));
end
Now if i have diffrent values of x like x1,x2 and x3 all having size 100*2 then how to plot 6 histograms in 1 plot?
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 9 月 2 日
http://www.mathworks.com/help/matlab/ref/histogram.html#buiynvy-13 together with http://www.mathworks.com/help/matlab/ref/histogram.html#namevaluepairs 'Normalization', 'probability'
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!