Problem with findpeaks - error message of 'undefined variable "coder"'
Mostrar comentarios más antiguos
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"
Respuesta aceptada
Más respuestas (2)
Star Strider
el 28 de Ag. de 2014
I’m a bit concerned about ‘...something like...’.
What returns when you run:
ac = class(data)
where ‘data’ is your argument to findpeaks.
If that comes back as double, I’m out of ideas and I’ll delete this.
2 comentarios
Seth
el 28 de Ag. de 2014
Star Strider
el 28 de Ag. de 2014
It may be time to put in a Support Request to TMW.
Image Analyst
el 29 de Ag. de 2014
For me it runs fine and gives:
data =
1 15 4 2
pks =
15
local =
2
Try putting a "clear all" before your code and try again. I don't have the mapping toolbox, or the MATLAB Coder toolbox either. What toolboxes are listed when you do "ver"?
1 comentario
Seth
el 29 de Ag. de 2014
Categorías
Más información sobre Bartlett en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!