필터 지우기
필터 지우기

how to make subplot of sequence column automatically?

조회 수: 14 (최근 30일)
Amra Rajuli
Amra Rajuli 2018년 4월 23일
댓글: Amra Rajuli 2018년 4월 23일
Hi, I am not sure that this typical question has been asked. I have searched for it and not find any that suit to my problem. I have 3 files containing 12 column, in which the first column is X-axis value. I plan to make subplot 11-row and 3-column, as this sequence: [A=file1;B=File2;C=File3]
+++ A:,2 +++ B:,2 +++ C:,2 +++
+++ A:,3 +++ B:,3 +++ C:,3 +++
+++ .... +++ .... +++ .... +++
+++ A:,12 +++ B:,12 +++ C:,12 +++

채택된 답변

KSSV
KSSV 2018년 4월 23일
A = rand(11,10) ;
[m,n] = size(A) ;
for i = 1:n-1
subplot(n-1,1,i)
plot(A(:,1),A(:,i+1))
end
  댓글 수: 1
Amra Rajuli
Amra Rajuli 2018년 4월 23일
Thank you. What about other two files. When I make it separately, the column appearance not in sequence anymore

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by