how to use figure command in script

1 次查看(过去 30 天)
Dave Griffin
Dave Griffin 2017-7-20
编辑: Adam 2017-7-20
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;);

回答(1 个)

Adam
Adam 2017-7-20
编辑:Adam 2017-7-20
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;);

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by