plotting 2D data by interpolating

hi,
i have data for vector of 40 points for x and y, and Z is my experiment result, how can i interpolate for more x and y,
do i need to fit a function and interpolate? looking forward for suggestion.

답변 (1개)

Rik
Rik 2018년 2월 17일

0 개 추천

Most functions with require you to resample to a regular rectangular grid, like interp2 does, so you'll have to use scatteredinterpolant.

댓글 수: 3

Rik
Rik 2018년 2월 24일
Did this work for you? If not, feel free to post comments here with your remaining questions. If it did solve your problem, please mark it as accepted answer. It will make it easier for other people with the same question to find an answer.
Kommisetti
Kommisetti 2018년 2월 24일
hi Rik
thank you for your prompt answer and sorry for delayed reply, actually, I tried scatteredinterpolant, but interpolation results are very poor.
May be, let me explain problem clearly, I have (x,y) coordinates and corresponding Z values, basically height of the map at corresponding coordinates.
I want to have map with more coordinates with in the boundaries. basically, -1.5 to +1.5 in both x and Y direction.
let me know if you want me to share the few data points to understand the problem more clear.
looking forward for some help. thanks in advance.
Rik
Rik 2018년 2월 24일
The fewer data points you have, the harder it is for an interpolation method to be successful. Sharing the code you tried and the points you tried it with might help. The best thing would be to fit some function to your data, but that is usually impossible.

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

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

태그

질문:

2018년 2월 16일

댓글:

Rik
2018년 2월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by