and restart MATLAB.
Question
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"
Expert Answer
John Michell
PhD Expert
Answered Aug 28, 2026
This looks like it might be a path issue. Try:
restore defaultpath savepath rehash toolboxcache
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related matlab Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →