how to use figure command in script
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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;);
0 comentarios
Respuestas (1)
Adam
el 20 de Jul. de 2017
Editada: Adam
el 20 de Jul. de 2017
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;);
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!