make an array and plot grid
2 ビュー (過去 30 日間)
古いコメントを表示
Hi!
If I have
A=10;B=20; C=30; D=40; E=50; F=60;
How would I plot it in a grid of 3X3.
for i = 1:6
axh = subplot(3, 3, i);
plot(i);
end
for i = 1:6
grid((i),'on')
end
???
0 件のコメント
回答 (1 件)
Stalin Samuel
2015 年 11 月 13 日
編集済み: Stalin Samuel
2015 年 11 月 13 日
A=10;B=20; C=30; D=40; E=50; F=60;
data = [A B C D E F]
figure
for i = 1:6
subplot(3,3,i)
plot(data(i),'*','MarkerSize',15)
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!