how will be interpolate 3D data
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!