making a graph in matlab

1 Ansicht (letzte 30 Tage)
Yung Xi
Yung Xi am 24 Okt. 2019
Bearbeitet: Yung Xi am 24 Okt. 2019
hello,
i want to make a 4x1 panal subplot in matlab (1 column and 4 rows) to display 4 graphs... What code do I need to do this as easy as possible? Thank you.

Antworten (1)

Stephan
Stephan am 24 Okt. 2019
Bearbeitet: Stephan am 24 Okt. 2019
doc subplot
small example:
A = randi(50,10,2);
subplot(3,1,1)
scatter(A(:,1),A(:,2),'*r')
B = randn(20,60);
subplot(3,1,2)
imagesc(1:size(B,2),1:size(B,1),B)
C = sort(randi(100,1,50));
subplot(3,1,3)
plot(1:numel(C), C,'lineWidth',2)
  1 Kommentar
Yung Xi
Yung Xi am 24 Okt. 2019
Bearbeitet: Yung Xi am 24 Okt. 2019
Thanks. can I do this for graphs I have saved as a .fig file?

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by