error in envelope function
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Victor
am 25 Apr. 2024
Verschoben: Steven Lord
am 26 Apr. 2024
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.
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 25 Apr. 2024
Verschoben: Steven Lord
am 26 Apr. 2024
Let's make sure you're using the findpeaks function included as part of Signal Processing Toolbox. What does this command show when you run it in the three different versions of MATLAB where this error occurs?
which -all findpeaks
1 Kommentar
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!