How to plot more figures
조회 수: 2 (최근 30일)
이전 댓글 표시
I have many input data(x) and function(F) to calculate output(y). I would like to plot y. I have the code:
x=[1 2.5 0.4 3...1] (for example 100 of them)
for i=100
a=x(i)
y=F(a)
plot(y)
end
when I run it, its only one figure shown up. So anyone can help to plot 100 of them? ( hope my question is clear to understand)
댓글 수: 0
채택된 답변
Iain
2013년 7월 18일
after plotting the first time issue any one of these three cmmands:
figure
hold on
hold all
Your loop also should be
for i = 1:100, rather than for i = 100
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!