how can fix this problem of interp1 line 184

1 回表示 (過去 30 日間)
Pengju
Pengju 2015 年 1 月 5 日
回答済み: Torsten 2015 年 1 月 5 日
??? Error using ==> interp1 at 184 There should be at least two data points.
Error in ==> POP at 234 sqp(ii,:)=interp1(1:nzpr(ii),iraraw(ii,1:nzpr(ii)),linspace(1,nzpr(ii),N),'spline');

回答 (1 件)

Torsten
Torsten 2015 年 1 月 5 日
Looks that you provide arrays to interp1 for interpolation that are empty or only contain one element.
Best wishes
Torsten.

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by