How to separate M*3 matrix by interval of 1
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
James Tursa
2018년 8월 3일
E.g., maybe something like this?
data = your 20x3 matrix
x = data(:,1);
result = data( 0<x & x<1 ,:);
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!