フィルターのクリア

Not enough input arguments. Help me please.

2 ビュー (過去 30 日間)
Muhammad Sufiyan
Muhammad Sufiyan 2015 年 4 月 28 日
編集済み: Muhammad Sufiyan 2015 年 4 月 29 日
Help me, i'm new to MatLab and I got this error after typing this code. Can somebody help me please and find a solution. Thanks.
function expected_freq = feature8(data,fs)
cutoff = 100;
data=data/max(abs(data));
b= fir1(100,2*cutoff/fs,'high',chebwin(101));
data=conv(data,b);
t=60e-3;
wl=2^nextpow2(t/(1/fs));
w=hann(wl,'periodic');
[F,T,P]=spectrogram(data,w,[],wl,fs);
a=sum(P,1);
temp1 = repmat(a,[],length(F));
PMF=P./temp1;
temp2 = repmat(F,1,length(T));
freq = sum(PMF.*temp2);
expected_freq= std(freq);
end
>> feature8 Error using feature8 (line 3) Not enough input arguments.

回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by