Remove data from matrix
조회 수: 6 (최근 30일)
이전 댓글 표시
How i remove the data >30 and <25 ? and how i make a pattern to remove them in any futuer data ?
댓글 수: 4
KALYAN ACHARJYA
2020년 4월 6일
편집: KALYAN ACHARJYA
2020년 4월 6일
When you remove the element from the matrix, what remains in that location?
채택된 답변
KSSV
2020년 4월 6일
If A is your array....
You can remove data using:
A(A>30) = [] ;
A(A<25) = [] ;
Or replace them with NaN's, if yu want same size.
A(A>30) = NaN ;
A(A<25) = NaN ;
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!