A model of the surface EMG signal is created by filtering a white gaussian noise, using a shaping filter H(f). this filter has low cut-off freq=60hz and high cut-off freq=120hz. this is my code but i don't know how to deal with Undefined function 'designfilt' for input arguments of type 'char'.
clear all; subplot(322); load nnoise.m; plot(nnoise,'k'); % design shaping filter
bpFilt = designfilt('bandpassfir',... 'CutoffFrequency1',60,'CutoffFrequency2',120, ... 'SampleRate',2000); subplot(323); W = filter(bpFilt,nnoise); plot(W,'k');title ('EMG');
Best Answer