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!