How to plot many figure with For function?

조회 수: 2 (최근 30일)
SimTec
SimTec 2022년 8월 2일
답변: Jon 2022년 8월 2일
Hello,
I would like to implement as many figure as I can using the for loop.
the result are that ,I only see the figure number 20.
for i=1:20
%figure(i)
plot(array(:,1),array(:,i))
end

채택된 답변

Jon
Jon 2022년 8월 2일
Uncomment the line in your code that assigns the figure number
So
for i=1:20
figure(i)
plot(array(:,1),array(:,i))
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by