how will be interpolate 3D data

1 次查看(过去 30 天)
devendra
devendra 2015-3-18
i have 3d data for resolution 2.0*2.5 but i want to interpolate this data set on .25*.25 resolution.
for this i already written this code. please tell this code is write or wrong for this process.
x = 68.7500; y = 7;
for i = 1:120
x_new(i,1) = x;
x = x + 0.25;
end
for j = 1:128;
y_new(j,1) = y;
y = y + 0.25;
end
[x,y] = meshgrid(Y1,X1);
[x1,y1]=meshgrid(y_new,x_new);
method='linear';
for i=1:12810;
interpolate_data(: , : , i) = interp2(x,y,model_data(: , : , i),x1,y1,method);
end

回答(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