2D interpolation of scattered data

4 次查看(过去 30 天)
theintern
theintern 2017-10-16
Hello everyone,
I am kind of new in Matlab and when I was trying to do things below, I got so confused. I digitized an experimental graph and take scattered datas.
---
clear all; close all; clc load datas
x=datas(:,1); y=datas(:,2); v=datas(:,3);
[xq,yq] = meshgrid(3:0.1:12, 0:0.1:1.2);
vq = griddata(x,y,v,xq,yq);
contour(xq,yq,vq)
---
for x=0:0.05:1 and with fixed y, I would like to find corresponding v value by using this digitized data. I think I should use griddata to do that but have no idea how to do. I´d be so appreciated if you would help me and give me an idea.
Thank you

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by