how will be interpolate 3D data
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!