Azzera filtri
Azzera filtri

How do I plot specific values from a matrix

8 visualizzazioni (ultimi 30 giorni)
Thomas il 10 Dic 2012
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?

Risposte (1)

Matt Fig
Matt Fig il 10 Dic 2012
idx = A(:,4)==3.7 & A(:,2)==1.2;
Beware floating point issues!


Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by