How I plot a matrix wich each rows is a different curves on the graph?

Hi, I have a 6x21 matrix. I want to plot it in one single graph in wich each rows is a different curves.

 Accepted Answer

a = randn(6, 21);
plot(a')

2 Comments

I have the value of the matrix, I do not need random value
I don't have your value of the matrix, so I have to generate some data to demonstrate the plot :-)

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Release

R2020b

Asked:

on 6 Oct 2021

Commented:

on 7 Oct 2021

Community Treasure Hunt

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

Start Hunting!