How do I plot specific values from a matrix

조회 수: 17 (최근 30일)
Thomas . 2012년 12월 10일
I have 6 column 5000 row matrix: A
I would like to plot Column 1 against column 5.
However I only want to do this when values from column 4 = 3.7 and the values from column 3 = 1.2
What is the easiest way to do this?

답변 (1개)

Matt Fig
Matt Fig 2012년 12월 10일
idx = A(:,4)==3.7 & A(:,2)==1.2;
Beware floating point issues!


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