필터 지우기
필터 지우기

How can I plot two matrices together with different legs

조회 수: 1 (최근 30일)
Seyed Sahand Mohammadi Ziabari
Seyed Sahand Mohammadi Ziabari 2018년 1월 8일
편집: Matt J 2018년 1월 8일
How can I plot two matrices with the same size (1200*12) together with different legs(12+12=24)?

채택된 답변

Matt J
Matt J 2018년 1월 8일
편집: Matt J 2018년 1월 8일
Just concatenate the two matrices and plot them as one,
plot([Data1,results])
leg1=arrayfun(@(i) ['Data1-',num2str(i)],1:12,'uni',0);
leg2=arrayfun(@(i) ['results-',num2str(i)],1:12,'uni',0);
legend(leg1{:},leg2{:});
  댓글 수: 2
Seyed Sahand Mohammadi Ziabari
Seyed Sahand Mohammadi Ziabari 2018년 1월 8일
It just shows one of them Data1 at the leg!
Matt J
Matt J 2018년 1월 8일
편집: Matt J 2018년 1월 8일
Not for me...

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

추가 답변 (0개)

카테고리

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