function instead of grid data without Interpolation
이전 댓글 표시
I want to make Matrix with 3 vector. but griddata make wrong result, does any one know the other function for making matrix?
댓글 수: 2
madhan ravi
2019년 2월 3일
편집: madhan ravi
2019년 2월 3일
Could you upload the code so that the pattern is observed and an alternative solution can be given?
Mah Mhata
2019년 2월 3일
답변 (1개)
KSSV
2019년 2월 4일
x=[1,8,2,8];
y=[2,3,0,9];
z=[80,30,30,40];
[X,Y]=meshgrid(x,y) ;
F = scatteredInterpolant(x',y',z') ;
Z = F(X,Y) ;
u=trapz(x,Z,2)
I=trapz(y,u)
댓글 수: 4
madhan ravi
2019년 2월 4일
Was thinking the same but https://www.mathworks.com/help/matlab/ref/scatteredinterpolant.html interpolates data right kssv? asking out of curiosity because your an expert in this.
KSSV
2019년 2월 4일
Yes it interpolates the scattered data.
madhan ravi
2019년 2월 4일
편집: madhan ravi
2019년 2월 4일
It was confusing because OP mentioned "function instead of grid data without Interpolation" so I thought there is some function which doesn't interpolate data similar to griddata() or scatteredInterpolant()?
Mah Mhata
2019년 2월 4일
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!