How to plot a histogram object

14 ビュー (過去 30 日間)
MITgnome
MITgnome 2018 年 9 月 20 日
回答済み: dpb 2018 年 9 月 21 日
I have an array of histogram objects.
figure;
hold on;
for i=1:filecount
foo(i)=[histogram(tmp2(:,:,i))];
end
Now I want to be able to plot an individual histogram, such as foo(3). Is there an easy way of doing it, other than having to go in to manually extract the parameters for plot()?

採用された回答

dpb
dpb 2018 年 9 月 21 日
bar(foo(3).BinEdges(2:end),foo(3).BinCounts)
or doc histogram recommends save/loadfig

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by