find out in which row an element is equal to a specific number
이전 댓글 표시
hi,
I have the following problem:
I have a matrix with 20 columns and over 200'000 rows. somewhere in this matrix there seems to be some strange datas which I would like to delete. If I am looking for the rownumbers where the value is higher than a specific value, lets say I am looking for all the values in the first row that are larger than 1500
If I do this:
data18(:,1)>1500
I get a logical array, but what I am looking for is the exact row number, what do I need to do?
채택된 답변
추가 답변 (3개)
N/A
2016년 5월 14일
0 개 추천
How would you implement this in a loop for a variety of values?
partha sarkar
2019년 12월 11일
0 개 추천
how to check whether aparticular value in a array is euqal to a given value
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!