i have these two data sets. A=[1;2;3;4;5;6;7;8;9;10] B=[0.7;0.8,0.4;0.1;0.5;0.6;0.9;0.3;0.82;0.54] how to draw the histogram for above data set?

 채택된 답변

Image Analyst
Image Analyst 2018년 5월 30일

0 개 추천

Try this:
A=[1;2;3;4;5;6;7;8;9;10]
B=[0.7;0.8;0.4;0.1;0.5;0.6;0.9;0.3;0.82;0.54]
subplot(1, 2, 1);
histogram(A);
grid on;
subplot(1, 2, 2);
histogram(B);
grid on;
See documentation and adapt options as desired.

추가 답변 (1개)

simith
simith 2018년 5월 30일

0 개 추천

Thank You Image...It's worked

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

질문:

2018년 5월 30일

답변:

2018년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by