how to filter data based on one value in a column?
조회 수: 83 (최근 30일)
이전 댓글 표시
how to filter data based on one value in a column. i have 40000 rows and 4 columns. in 4th column i have values 1, 2, 3, 4. i want to filter all records in which the values of the 4th column should only be 3. the data is 40000 X 4 double type.
댓글 수: 0
답변 (1개)
Cris LaPierre
2021년 11월 1일
A = rand(10,3);
A(:,4) = randi(4,10,1)
idx = A(:,4)==3;
B = A(idx,:)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filter Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!