How to change the plot on the matrix?

조회 수: 1 (최근 30일)
HelpAStudent
HelpAStudent 2021년 10월 6일
답변: David Hill 2021년 10월 6일
I have a matrix 6x21, when I plot
figure; plot(matrix);hold on
This makes a plot with 21 curves, just like this:
But I want the contrary, how can I have just 7 curves (one for each rows)?

채택된 답변

David Hill
David Hill 2021년 10월 6일
plot(matrix');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by