필터 지우기
필터 지우기

Determing intermediate points in 3D mesh plot

조회 수: 1 (최근 30일)
SUSHMA MB
SUSHMA MB 2015년 1월 15일
댓글: SUSHMA MB 2015년 1월 16일
i have a series of x, and y points eg: x=1,2,3 and y=1,2,3 and i have z =[10,20,30;15,25,35;30,40,50] and i have plotted a mesh grid using these values as mesh(x,y,z); now how can i determine the value of 'z' for corresponding x=1.2 and y=2.7 coodinates

채택된 답변

Alessandro Masullo
Alessandro Masullo 2015년 1월 15일
If the points are on regular grid, you can use interp2:
interp2(x,y,z,x0,y0,'cubic')
Otherwise, you can scatteredInterpolant.
  댓글 수: 1
SUSHMA MB
SUSHMA MB 2015년 1월 16일
Thank you for the reply....but im not able to use scatteredInterpolant function. Its showing error as "Undefined function 'scatteredInterpolant' for input arguments of type 'double'."

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by