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

2 ビュー (過去 30 日間)
Isti
Isti 2012 年 4 月 24 日
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 :')

採用された回答

Richard Brown
Richard Brown 2012 年 4 月 24 日
[I,J] = find(isnan(A))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by