interpolating across multiple axis
이전 댓글 표시
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;
답변 (1개)
dpb
2017년 4월 4일
See
doc interpn
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!