MATLAB: Handling filename containing spaces

filename spaces dlmreadMATLAB

I am using the following code to load a data file [Windows environment]:
FileName = uigetfile('*.TAB','Select a TAB file.');
Frames = dlmread(FileName_in,'\t');
Most of the files have names such as foo_two.tab or foo-two.tab Some contain spaces, such as foo two.tab
I have tried both strcat and regexp to insert single quotes at the beginning and end of the filename string but these are ignored by the dlmread function.
Any tips or suggestions would be appreciated.

Best Answer

Matlab's fopen handles filenames containing spaces without any problems. Do not enclose them in quotes or double quotes.
If you have any problems, there must by another reason.