Finding when data in a matrix exceeds a certain value

Hi,
I am trying to find the onset of damage within a matrix of data. I have subtracted away the standard deviation of the data and am now trying to find where the data is larger than the standard deviation, i.e. greater than 0.
Is there a function in MATLAB that will tell me when the data exceeds 0 and will print the row number?
Thanks

 채택된 답변

Star Strider
Star Strider 2015년 3월 2일
To find the row number where the data exceeds zero, use the find function with two outputs:
x = randi(10, 5, 5)-9; % Example Data
[xr, xc] = find(x > 0);
The ‘xr’ variable here has the row numbers of all the values that exceed zero. (The corresponding column numbers are in ‘xc’.)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2015년 3월 2일

댓글:

2015년 3월 2일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by