Using interp1 to interpolate y values
古いコメントを表示
Hi,
I am attempting to interpolate my y values array instead of my x values.
Data: (y : 35x1534 double) (x: 35x1 double) (ny= 35x46 double)
newy = interp1(y,x,ny);
Hoping to have an output which is
newy : 35x46 double
However it returns with dimension errors. Is it possible to interpolate my y values to my ny values or would this not be possible?
Thanks.
3 件のコメント
Image Analyst
2019 年 3 月 3 日
Why do you not have an x for every y? Wht are the ny values? Can you attach your matrices in a.mat file?
Kelly
2019 年 3 月 3 日
Cris LaPierre
2019 年 3 月 4 日
編集済み: Cris LaPierre
2019 年 3 月 4 日
I don't think interpolating is going to work for you. Interpolation requires your data cover the same range of values just sampled at different intervals. Besides both having 35 rows, I don't see any sort of overlap in your data.
Here's your Y data (35x1534)

Here's your NY data (35x46)

採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
