Borrar filtros
Borrar filtros

how will be interpolate 3D data

2 visualizaciones (últimos 30 días)
devendra
devendra el 18 de Mzo. de 2015
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

Respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by