code for plotting more than one histogram in MATLAB
15 ビュー (過去 30 日間)
古いコメントを表示
Hi; I am new to MATLAB and i have this question to ask: is it possible for one to write a code in MATLAB such that different histograms(say more than two) are plotted and shown on the screen at the same time?
Thank you in anticipation of your response.
Simon.
0 件のコメント
回答 (1 件)
Aurelien Queffurust
2011 年 9 月 26 日
subplot should achieve what you want :
x = -4:0.1:4;
y = randn(1000,2);
figure
subplot(2,1,1)
hist(y(:,1),x)
subplot(2,1,2)
hist(y(:,2),x)
1 件のコメント
Mauricio Cabrera
2021 年 11 月 3 日
Gracias me ayudo, cabe destacar que ahora la función hist() se está actualizando por histrogram(). Saludos.
参考
カテゴリ
Help Center および File Exchange で Color and Styling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!