I have seven different graphs in one script and I want to see all seven graphs in one screen what matlab command I can Use.

5 Ansichten (letzte 30 Tage)
f1=m1(:,1); r1=m1(:,2); i1=m1(:,3); mag1=sqrt(r1.^2+i1.^2); plot(f1,mag1); figure(1);
f2=m2(:,1); r2=m2(:,2); i2=m2(:,3); abs2=sqrt(r2.^2+i2.^2); figure(2); plot(f2,abs2);
f3=m3(:,1); r3=m3(:,2); i3=m3(:,3); abs3=sqrt(r3.^2+i3.^2); figure(3); plot(f3,abs3);
f4=m4(:,1); r4=m4(:,2); i4=m4(:,3); abs4=sqrt(r4.^2+i4.^2); figure(4); plot(f4,abs4);
f5=m5(:,1); r5=m5(:,2); i5=m5(:,3); abs5=sqrt(r5.^2+i5.^2); figure(5); plot(f5,abs5);
f6=m6(:,1); r6=m6(:,2); i6=m6(:,3); abs6=sqrt(r6.^2+i6.^2); figure(6); plot(f6,abs6);
f7=m7(:,1); r7=m7(:,2); i7=m7(:,3); abs7=sqrt(r7.^2+i7.^2); figure(7); plot(f7,abs7);
  2 Kommentare
Adam
Adam am 26 Mai 2017
Do you mean one screen or one figure? Just move them around to see them on one screen. Or use the
Position
property of the figure to position them all programmatically in a tiled fashion.

Melden Sie sich an, um zu kommentieren.

Antworten (3)

Adriano
Adriano am 26 Mai 2017
Use subplot(m,n,p) function!

Image Analyst
Image Analyst am 26 Mai 2017
Try this:
f1=m1(:,1); r1=m1(:,2); i1=m1(:,3); mag1=sqrt(r1.^2+i1.^2);
subplot(3, 3, 1);
plot(f1,mag1);
f2=m2(:,1); r2=m2(:,2); i2=m2(:,3); abs2=sqrt(r2.^2+i2.^2);
subplot(3, 3, 2);
plot(f2,abs2);
f3=m3(:,1); r3=m3(:,2); i3=m3(:,3); abs3=sqrt(r3.^2+i3.^2);
subplot(3, 3, 3);
plot(f3,abs3);
f4=m4(:,1); r4=m4(:,2); i4=m4(:,3); abs4=sqrt(r4.^2+i4.^2);
subplot(3, 3, 4);
plot(f4,abs4);
f5=m5(:,1); r5=m5(:,2); i5=m5(:,3); abs5=sqrt(r5.^2+i5.^2);
subplot(3, 3, 5);
plot(f5,abs5);
f6=m6(:,1); r6=m6(:,2); i6=m6(:,3); abs6=sqrt(r6.^2+i6.^2);
subplot(3, 3, 6);
plot(f6,abs6);
f7=m7(:,1); r7=m7(:,2); i7=m7(:,3); abs7=sqrt(r7.^2+i7.^2);
subplot(3, 3, 7);
plot(f7,abs7);
  1 Kommentar
Prateek Srivastava
Prateek Srivastava am 26 Mai 2017
I got it thanks a lot .But if you could help me once more, after this I need to find mode shapes if you could tell me how to do that.

Melden Sie sich an, um zu kommentieren.


Prateek Srivastava
Prateek Srivastava am 26 Mai 2017
I got it thanks a lot .But if you could help me once more, after this I need to find mode shapes if you could tell me how to do that.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by