How to plot a graph?

1 次查看(过去 30 天)
Harsha M V
Harsha M V 2021-9-20
评论: Harsha M V 2021-9-22
I have a matrix of 50x6 and range between 0 - 1.
Now I have to plot in a way such that X and Y axis range is 0 to 1 and graph should have 50 lines (row-wise data of the matrix).
can you enlightnen me in plotting this?

回答(2 个)

KSSV
KSSV 2021-9-20
You can striaght away use plot on 50*6 matrix.
plot(A) ; % A is 50*6 matrix
legend
  3 个评论
Harsha M V
Harsha M V 2021-9-20
graph should look like the below image with 50 lines

请先登录,再进行评论。


Harsha M V
Harsha M V 2021-9-21
No sir,
It comes column wise
I want something like in the below figure: (50 lines corresponds to 50 rows of the matrix)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by