Riken Shah
Riken Shah

Reputation: 3154

'inputParser' undefined in octave

I am trying to use findpeaks() function from signal package in octave. I have installed and loaded signal and control packages and now when I try to run [pks3 idx3] = findpeaks(X,"DoubleSided","MinPeakHeight",0.5); , I get the following error.

warning: the 'inputParser' function is not yet implemented in Octave

Please read http://www.octave.org/missing.html to learn how you can contribute missing functionality.

error: 'inputParser' undefined near line 109 column 12 error: called from: error: /home/kenden/octave/signal-1.3.2/findpeaks.m at line 109, column 10

Data X is in this format - 762 660 660 ... Is there any work around for it?

Upvotes: 0

Views: 744

Answers (2)

Andy
Andy

Reputation: 8091

inputParser was implemented in GNU Octave 4.0 so it looks like you are using an older version. Either update Octave or downgrade signal.

Upvotes: 1

Riken Shah
Riken Shah

Reputation: 3154

I was able to find a workaround by using peakdet function from here.

Upvotes: 0

Related Questions