Plot specific columns from matrix

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

 采纳的回答

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by