MATLAB: Error ” Unexpected matlab expression workspacefunc 329″

workspacefunc error

Hi,
Anyone who has the same experience with this error " Unexpected matlab expression workspacefunc 329". I met it every time I run some code or click some file in workspace. What kind of problem it might be???
Thanks!

Best Answer

It probably means you have a function somewhere that "shadows" a built in Matlab function, i.e. that has the same name as a built in function.
Try typing "which functionname -all" (without the quotes) in the workspace.
Instead of functionname, type in one of these functions:
  • strsplit
  • builtin
  • strjoin
If it shows more than one path for any of the functions, you know you have a duplicate function that may be causing a conflict.