Check for missing argument or incorrect argument data type in call to function 'resample'

Im trying to code a simple downsample program and I keep getting this error, and Idk why
My code:
Matrix= readmatrix('DSTXTBU.xlsx');
x=Matrix(:,1);
y=Matrix(:,2);
figure(1)
plot(x,y);
%Downsampling 1
DS1x=x;
XDS1=resample(x,1,80);
DS1y=x;
YDS1=resample(DS1y,1,80);
figure(2)
plot(XDS1,YDS1)

5 件のコメント

VBBV
VBBV 2020 年 12 月 16 日
編集済み: VBBV 2020 年 12 月 16 日
Are there any NaN in the vectors x and y? If so delete them and try again.
Walter Roberson
Walter Roberson 2020 年 12 月 16 日
What is class(x)
readmatrix can return non-numeric matrices. You might need to use Headerlines when you read
Asfandyar Malik
Asfandyar Malik 2020 年 12 月 16 日
I realized the problem is that I don't have the toolbox installed to use the function, thanks everyone for the help
adi glebotzki
adi glebotzki 2020 年 12 月 20 日
Hi, I have the same problem..
what toolbox did you install?
Walter Roberson
Walter Roberson 2020 年 12 月 20 日
Signal Processing Toolbox is needed for resample()

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

回答 (1 件)

Ankit Gupta
Ankit Gupta 2021 年 3 月 9 日

2 投票

Make sure to install the Signal Processing Toolbox to use the 'resampling' function.
Add it as an addon toolbox from MATLAB itself!

カテゴリ

製品

質問済み:

2020 年 12 月 15 日

回答済み:

2021 年 3 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by