How to change the plot on the matrix?

1 vue (au cours des 30 derniers jours)
HelpAStudent
HelpAStudent le 6 Oct 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)?

Réponse acceptée

David Hill
David Hill le 6 Oct 2021
plot(matrix');

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by