MATLAB Answers

matlab code for histogram

39 views (last 30 days)
simith
simith on 30 May 2018
Answered: simith on 30 May 2018
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?

  0 Comments

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 30 May 2018
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.

  0 Comments

Sign in to comment.

More Answers (1)

simith
simith on 30 May 2018
Thank You Image...It's worked

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by