Effacer les filtres
Effacer les filtres

How to plot a graph?

2 vues (au cours des 30 derniers jours)
Harsha M V
Harsha M V le 20 Sep 2021
Commenté : Harsha M V le 22 Sep 2021
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?

Réponses (2)

KSSV
KSSV le 20 Sep 2021
You can striaght away use plot on 50*6 matrix.
plot(A) ; % A is 50*6 matrix
legend
  3 commentaires
Harsha M V
Harsha M V le 20 Sep 2021
graph should look like the below image with 50 lines
KSSV
KSSV le 20 Sep 2021
Transpose A..
plot(A') ;

Connectez-vous pour commenter.


Harsha M V
Harsha M V le 21 Sep 2021
No sir,
It comes column wise
I want something like in the below figure: (50 lines corresponds to 50 rows of the matrix)
  2 commentaires
KSSV
KSSV le 21 Sep 2021
Attach your data.
Harsha M V
Harsha M V le 22 Sep 2021
data attached Sir

Connectez-vous pour commenter.

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by