interpolating across multiple axis
Mostrar comentarios más antiguos
I have data that needs to be interpolated between and am not sure how to do it most efficiently. I could perform 1 axis of interpolation at a time but would like to do all with 1 function. Is it possible and how would it apply to the below data? Thanks!
% Axis headers
xAxis=[0 0.5 0.75 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7]; %Column Headers
yAxis=[0; 1.2; 2.4; 4.8; 7]; %Row Headers
zAxis=[0.4 0.5 0.6 0.7]; %Page Headers
% Set up each page's data.
DataSource(:,:,1)=randi([6 30], [5,11]);
DataSource(:,:,2)=randi([6 30], [5,11]);
DataSource(:,:,3)=randi([6 30], [5,11]);
DataSource(:,:,4)=randi([6 30], [5,11]);
%Intercepts to solve for.
xValue=1.15; yValue=3; zValue=0.55;
Respuestas (1)
dpb
el 4 de Abr. de 2017
See
doc interpn
Categorías
Más información sobre Interpolation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!