im getting an error message please help

[A,B,C,D]=butter(10,[395 405]/750);
d = designfilt('bandpassiir','FilterOrder',4,...
'HalfPowerFrequency1',395,'HalfPowerFrequency2',405 ...
'SampleRate',1500);
sos=ss2sos(A,B,C,D);
fvt=fvtool(sos,'Fs',1500);
legend(fvt,'butter','designfilt')
i am getting this error message
'SampleRate',1500);
Error: Unexpected MATLAB expression.

 採用された回答

Birdman
Birdman 2018 年 2 月 13 日

0 投票

Include a comma:
d = designfilt('bandpassiir','FilterOrder',4,...
'HalfPowerFrequency1',395,'HalfPowerFrequency2',405, ...
'SampleRate',1500);

その他の回答 (0 件)

カテゴリ

質問済み:

2018 年 2 月 13 日

コメント済み:

2018 年 2 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by