フィルターのクリア

Interp2 - Inconsistent Size for X and Y inputs - Scattered Data

9 ビュー (過去 30 日間)
bugatti79
bugatti79 2013 年 11 月 9 日
回答済み: Matt J 2013 年 11 月 9 日
Folks,
I have measured results of 2 independent variables Z=f(X,Y) each of which have inconsistent spacing
I wish to interpolate this measured data so that I obtain Z1 for desired inputs X1 and Y1 both of which also have uneven spacing.
I attempted the following
Test=interp2(X, Y, Map,X1,Y1)
where X,X1,Y, Y1 are row vectors and Map is a 8*9 matrix but I get error "The input data has inconsistent size"
Any suggestions? Thanks in advanced B
  2 件のコメント
Matt J
Matt J 2013 年 11 月 9 日
編集済み: Matt J 2013 年 11 月 9 日
I suggest you copy/paste the complete error message so we have more info.
bugatti79
bugatti79 2013 年 11 月 9 日
Hi Matt J
as requested
Error using griddedInterpolant/subsref
The input data has inconsistent size.
Error in interp2 (line 161)
Vq = F(Xq,Yq);

サインインしてコメントする。

回答 (1 件)

Matt J
Matt J 2013 年 11 月 9 日
X1 and Y1 have different numbers of elements, similar to
>> interp2(rand(100), 1:3, 1:2)
Error using griddedInterpolant/subsref
The input data has inconsistent size.
Error in interp2 (line 158)
Vq = F(Xq,Yq);

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by