When I am running findpeak it is giving me the following error? Why is there this error? How to modify the code to fix it?
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Anuradha Bhattacharya
 el 28 de Sept. de 2016
  
    
    
    
    
    Respondida: Mohammad Haghighat
      
 el 4 de Oct. de 2016
               a = load('ra1.dat');
   x = a(:,1);
   y = a(:,2);
  plot(x,y);
  findpeaks(y,x);
The following error is being given:
Error using uddpvparse (line 122) Invalid Parameter/Value pairs.
Error in findpeaks>parse_inputs (line 84) hopts = uddpvparse('dspopts.findpeaks',varargin{:});
Error in findpeaks (line 59) [X,Ph,Pd,Th,Np,Str,infIdx] = parse_inputs(X,varargin{:});
Respuesta aceptada
  Mohammad Haghighat
      
 el 4 de Oct. de 2016
        For some reason, you have an odd number of parameters for uddpvparse. You'd better put a break point at "findpeaks>parse_inputs (line 84)" and check what parameters are passed to the uddpvparse.
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


