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
KSSV
KSSV 2021 年 9 月 20 日
Transpose A..
plot(A') ;

サインインしてコメントする。


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)
  2 件のコメント
KSSV
KSSV 2021 年 9 月 21 日
Attach your data.
Harsha M V
Harsha M V 2021 年 9 月 22 日
data attached Sir

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by