How to interpolate data in cells?

5 ビュー (過去 30 日間)
Tomaszzz
Tomaszzz 2022 年 2 月 1 日
コメント済み: Tomaszzz 2022 年 2 月 1 日
Hi,
I have data concentrated in 7x 1 cell (attached).
I want to interpolate each array to 100 data points using the following line
P_or_z_cycle = interpft(P_or_z_cycle, 100)';
which gives me an error:
Error using fft
Invalid data type. First argument must be double, single, int8, uint8, int16, uint16, int32, uint32, or logical.
Error in interpft (line 67)
a = fft(x,[],1);
How can I ovecome this please?

採用された回答

Turlough Hughes
Turlough Hughes 2022 年 2 月 1 日
As follows:
S_or_x_cycle2 = cellfun(@(x) interpft(x,100), S_or_x_cycle, 'uni', 0)
  1 件のコメント
Tomaszzz
Tomaszzz 2022 年 2 月 1 日
Thanks!

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

その他の回答 (0 件)

カテゴリ

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