Why does the function call "function [hdr, record] = edfReadOddur( 'tinnaprime.edf',varargin )" give an error?
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Oddur Bjarnason
 el 25 de Jul. de 2017
  
    
    
    
    
    Comentada: Oddur Bjarnason
 el 26 de Jul. de 2017
            This is the error message:
Error: File: edfReadOddur.m Line: 1 Column: 40 Unexpected MATLAB expression.
0 comentarios
Respuesta aceptada
  Geoff Hayes
      
      
 el 25 de Jul. de 2017
        Oddur - if your function signature (the first line in edfReadOddur.m) is written as
 function [hdr, record] = edfReadOddur( 'tinnaprime.edf',varargin )
then the problem is that you are trying to set the first parameter of your function as a string rather than as an input parameter/variable. Your signature should be defined as
 function [hdr, record] = edfReadOddur( filename, varargin)
and you would call the above (from the command line or another piece of code) and pass in 'tinnaprime.edf' to populate/set the filename parameter
 >> edfReadOddur('tinnaprime.edf')
3 comentarios
  Geoff Hayes
      
      
 el 26 de Jul. de 2017
				 function [hdr, record] = edfread(fname, varargin)
so it isn't clear to me why you think that it should be
 function [hdr, record] = edfRead('tinnaprime.edf', varargin)
You would call this function as
 [hdr, record] = edfRead('tinnaprime.edf)
(perhaps passing more input variables as described along with this FEX submission.
As for the error, No such file or directory, try passing the full path and file name as the input parameter to edfRead.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Graph and Network Algorithms en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!