error in envelope function
The envelope function always gives me an error when I enter the input ‘peaks’, whatever the data may be. The error that appears is this:
Error using findpeaks
Too many input arguments.
Error in envelope>envPeak (line 181)
[~,iPk] = findpeaks(double(x(:,chan)),’MinPeakDistance’,n);
Error in envelope (line 79)
[yupper, ylower] = envPeak(x,n);
I have looked at three different versions of Matlab and it gives me the error in all three.The envelope function always gives me an error when I enter the input ‘peaks’, whatever the data may be. The error that appears is this:
Error using findpeaks
Too many input arguments.
Error in envelope>envPeak (line 181)
[~,iPk] = findpeaks(double(x(:,chan)),’MinPeakDistance’,n);
Error in envelope (line 79)
[yupper, ylower] = envPeak(x,n);
I have looked at three different versions of Matlab and it gives me the error in all three. The envelope function always gives me an error when I enter the input ‘peaks’, whatever the data may be. The error that appears is this:
Error using findpeaks
Too many input arguments.
Error in envelope>envPeak (line 181)
[~,iPk] = findpeaks(double(x(:,chan)),’MinPeakDistance’,n);
Error in envelope (line 79)
[yupper, ylower] = envPeak(x,n);
I have looked at three different versions of Matlab and it gives me the error in all three. envelope signal MATLAB Answers — New Questions