Effacer les filtres
Effacer les filtres

How to plot more figures

2 vues (au cours des 30 derniers jours)
Vivi
Vivi le 18 Juil 2013
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)

Réponse acceptée

Iain
Iain le 18 Juil 2013
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
  2 commentaires
Vivi
Vivi le 18 Juil 2013
I tried:
plot(y)
hold on
hold all
but all of them are plotted in the same figure, but how to plot 100 separate figures?
Vivi
Vivi le 18 Juil 2013
I got it.Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by