Plot specific columns from matrix

5 visualizaciones (últimos 30 días)
Eric  Valois
Eric Valois el 8 de Jun. de 2017
Comentada: Saundie Franz el 27 de Abr. de 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

Respuesta aceptada

Apratim Bajpai
Apratim Bajpai el 8 de Jun. de 2017
You can use, scatter(A(:,1),A(:,2))
Where A is the matrix in question.

Más respuestas (0)

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by