MATLAB Answers

How to get the location/coordinate of a value in the matrix?

75 views (last 30 days)
Isti
Isti on 24 Apr 2012
I have matrix like this,
Data:
2 1 4 6 2
9 4 6 1 4
5 3 2 8 3
7 2 1 NaN 3
7 1 8 2 7
I want to make output where the 'NaN' is located. So from case above, it will be ---> Data(4,4). what can i do to matlab code to produce that output?
Need help soon, Thanks before :')

  0 Comments

Sign in to comment.

Accepted Answer

Richard Brown
Richard Brown on 24 Apr 2012
[I,J] = find(isnan(A))

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by