Plot specific columns from matrix

6 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by