How to change the plot on the matrix?

1 Ansicht (letzte 30 Tage)
HelpAStudent
HelpAStudent am 6 Okt. 2021
Beantwortet: David Hill am 6 Okt. 2021
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)?

Akzeptierte Antwort

David Hill
David Hill am 6 Okt. 2021
plot(matrix');

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by