How to plot a histogram object

조회 수: 3 (최근 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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by