Plot specific columns from matrix

6 vues (au cours des 30 derniers jours)
Eric  Valois
Eric Valois le 8 Juin 2017
Commenté : Saundie Franz le 27 Avr 2020
Hello Everyone , I have a matrix that is 2018X4 double and I need to create a scatter plot that uses column 2 as the X and column 1 as the Y. Is there a simple way to go about doing this?
Eric

Réponse acceptée

Apratim Bajpai
Apratim Bajpai le 8 Juin 2017
You can use, scatter(A(:,1),A(:,2))
Where A is the matrix in question.
  1 commentaire
Saundie Franz
Saundie Franz le 27 Avr 2020
this did not work

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Scatter 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