フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I want to interpolate from matrix

1 回表示 (過去 30 日間)
Ede gerlderlands
Ede gerlderlands 2012 年 10 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have Sca1l(20,40,26) matrix which contains files on the respective axes. I want to find the value of Scall for a single point on the first dimension which is given by C(1,:,jj) and is in the range given by Scall
for jj= length(time)
Sca13=interp1(:,:,jj,Sca1l(:,:,jj),C(1,:,jj) );
end
but can't manage to it ...any help pls.
Thanks in advance for your it
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 20 日
I think it's not clear
Ede gerlderlands
Ede gerlderlands 2012 年 10 月 20 日
編集済み: Ede gerlderlands 2012 年 10 月 20 日
ok ..let me put it this way I have S(20x40x26)matrix with values in it ...the first dimension 20 contains values from 1:20 and I want to know what is the value for 'S' for 5.5th number? which makes it(5.5,40,26)? I don't know if this explains it..tnx..

回答 (1 件)

Matt J
Matt J 2012 年 10 月 20 日
interp1(1:20,S,5.5);
  2 件のコメント
Ede gerlderlands
Ede gerlderlands 2012 年 10 月 20 日
C(:,jj) is the points of interpolation in the first question which is to be used in place of 5.5.
Matt J
Matt J 2012 年 10 月 20 日
okay.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by