How to separate M*3 matrix by interval of 1
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
For example, If I have a data like 20*3 data, and define each of column as x y z, how can I separate matrix that the x value is 0<x<1, 1<x<2 , 2<x<3 ... ??
1 Commento
Risposta accettata
Più risposte (1)
James Tursa
il 3 Ago 2018
E.g., maybe something like this?
data = your 20x3 matrix
x = data(:,1);
result = data( 0<x & x<1 ,:);
Vedere anche
Categorie
Scopri di più su Matrices and Arrays 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!