Plot specific columns from matrix

조회 수: 7 (최근 30일)
Eric  Valois
Eric Valois 2017년 6월 8일
댓글: Saundie Franz 2020년 4월 27일
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