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에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by