Find NaN elements in a matrix (X,Y,Z)

조회 수: 2 (최근 30일)
ShayanA
ShayanA 2019년 2월 4일
답변: ShayanA 2019년 2월 5일
Hello.
i,m a new Matlab user and trying to find the closest value to Z in my matrix (se the table blow )and got many problem.
tried to find out a value at the time with
"y_lookup = interpl (X,Y,-----)" but the result was not right one.
Can someone explain the goodway to findout / generate NaN value in my matrix?
and how to interpolate it and replace the NaN?
X=[ -1 : 0.1 : 1]
Y= [-1 : 0.1 : 1 ]
Z = [ 17.46 12.62 12.01 11.68 6.39 13.09 2.64 1.15 NaN NaN NaN NaN NaN NaN -1.3 NaN -6.9 NaN 0.9 -0-6]
Thanks
SA
  댓글 수: 1
Rik
Rik 2019년 2월 4일
How does this Z vector correspond to you X and Y? Usually, this would mean you have a surface, with a Z value for each combination of X and Y, which would mean 100 points, not 20.

댓글을 달려면 로그인하십시오.

답변 (1개)

ShayanA
ShayanA 2019년 2월 5일
Yes, thats right . Z value becomes a combination of x and y which going to be the 100 different value .
SA

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by