I am not understanding why I am getting this error.
clear,clcload('DATA_01_TYPE01.mat')A = sig;x = A(2,1:1000); %PPG channel
y=A(3,1:1000); %x-axis acceleration
t=1:1:1000;Fs = 125;Fn = Fs/2[x,y]=butter(2,[0.4 5]/Fn);d = designfilt('bandpassiir','FilterOrder',2,'HalfPowerFrequency1',0.4,'HalfPowerFrequency2',5, 'SampleRate',125);sos = ss2sos(x,y);N=normalize(x,y)subplot(3,1,1)plot(t,sos)title('Raw Signals')xlabel('Sampling Points')legend('PPG','Acceleration','Location','Southeast','Orientation','Horizontal')
Command Window:
Error using ss2sos (line 78)Not enough input arguments.Error in Butterworth_Practice (line 33)sos = ss2sos(x,y);
Best Answer