Basic functions not working
22 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Over the past week or so I've been having a Matlab-wide problem where basic functions have stopped working. Trying to use a code suite(designed for EEG analysis using the EEGLAB plug-in) that had previously worked very smoothly, now results in a number of errors depending on what I'm trying to do with it. The first problem I got was that mkdir was unable to create a cache folder in a directory where permissions would not be an issue. Subsequently trying to use xlsread has given numerous errors, for instance:
Error using xlsread (line 260)
Undefined function 'find' for input arguments of type 'function_handle'.
I've tried reorganizing my paths as well as reverting to the default path set with no avail. Testing xlsread outside of the context of our code leads to errors along the lines of 'Undefined variable "[filename]" or class "[filename].xlsx".' in various situations.
I attempted to update from 2015b to 2017a, but the issue persists. I haven't been able to find anything in the answers where there was an issue that was so general and impacted some of the more basic functionality of the program, but if you suspect this has already been dealt with please point me in the proper direction, otherwise any thoughts on what might cause/fix this are greatly appreciated!
3 comentarios
Respuestas (1)
Spencer Chen
el 4 de Abr. de 2017
It looks to me that somehow the internal "find" function is overridden with another function in the Matlab path or by a variable name. You can use:
> which find
to check that out.
If that's the case, rename your custom function or variable.
For custom code, I recommend using Matlab's package (+folder) file organization to avoid confusion with built-in functions and functions from other downloaded toolboxes. E.g. put a custom "find" function as "+my\find.m", and execute the custom find function using:
> my.find(...)
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown 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!