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

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개)

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by