and restart MATLAB.
I am trying to use the findpeaks function out of the signal processing toolbox. When I enter something like... data = [1 15 4 2] [pks,local] = findpeaks(data) ...I get Undefined variable "coder" or class "coder.target". Error in findpeaks>parse_inputs (line 99) if coder.target('MATLAB') Error in findpeaks (line 71) [X,Ph,Pd,Th,Np,Str,infIdx] = parse_inputs(Xin,varargin{:}); 99 if coder.target('MATLAB') I am running Matlab 2014a with signal & stats & mapping toolboxes & have confirmed that I am pointing to the correct findpeaks function via "which -all findpeaks"
John Michell answered .
2025-11-20
restore defaultpath savepath rehash toolboxcache