how to use figure command in script
Afficher commentaires plus anciens
I can't get my head around the figure command, I have 3 plots with various traces per plot but as each has very different magnitude. I know have this wrong so if anyone can help me
figure(plot(V6,'DisplayName','60%');hold on;plot(V5,'DisplayName','50%');plot(V4,'DisplayName','40%');plot(V3,'DisplayName','30%');plot(V2,'DisplayName','20%');plot(V1,'DisplayName','10%');plot(V0,'DisplayName','0%');plot(Vminpu,'DisplayName','Vmin');hold off;);
figure(plot(I6,'DisplayName','60%');hold on;plot(I5,'DisplayName','50%');plot(I4,'DisplayName','40%');plot(I3,'DisplayName','30%');plot(I2,'DisplayName','20%');plot(VI,'DisplayName','10%');plot(I0,'DisplayName','0%');hold off;);
figure(plot(S6,'DisplayName','60%');hold on;plot(S5,'DisplayName','50%');plot(S4,'DisplayName','40%');plot(S3,'DisplayName','30%');plot(S2,'DisplayName','20%');plot(S1,'DisplayName','10%');plot(S0,'DisplayName','0%');plot(Smax,'DisplayName','Smax');hold off;);
Réponses (1)
doc figure
tells you how to use the figure command. Just create a figure then plot as a separate instruction, don't pass plot to figure as an argument - i.e.
figure; plot(V6,'DisplayName','60%');hold on;plot(V5,'DisplayName','50%');plot(V4,'DisplayName','40%');plot(V3,'DisplayName','30%');plot(V2,'DisplayName','20%');plot(V1,'DisplayName','10%');plot(V0,'DisplayName','0%');plot(Vminpu,'DisplayName','Vmin');hold off;);
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!