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
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
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
2018-2-24
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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!