MATLAB: Am I unable to run MATLAB files that contain spaces in the file name

doesn'tfilenameMATLABrunspacewhite

I am unable to run MATLAB files that contain spaces in the file name.

Best Answer

This is not a bug; rather, it is an intended functionality of MATLAB. There are no ways to call functions whose file names contain spaces, so the only workaround is to rename your files so that they do not contain spaces.
Note that you can access directories with spaces in their names as described in Related Solution 1-18S2I.
However, the workaround listed in that solution will not work for function file names.