필터 지우기
필터 지우기

make an array and plot grid

조회 수: 2 (최근 30일)
virat rehani
virat rehani 2015년 11월 13일
편집: Walter Roberson 2015년 11월 13일
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
???

답변 (1개)

Stalin Samuel
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

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by