a =
1 2 3
4 5 6
NaN 1 0
>> isnan(a)
ans =
0 0 0
0 0 0
1 0 0
>> isnan(a(:))
ans =
0
0
1
0
0
0
0
0
0
>> isnan(a(1,:))
ans =
0 0 0
>> isnan(a(3,:))
ans =
1 0 0
To judge if there are some NaN elements in Matrix in matlab
1 0 0
To judge if there are some NaN elements in Matrix in matlab
道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。