handling filename containing spaces
이전 댓글 표시
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.
댓글 수: 1
Sean de Wolski
2012년 3월 16일
So I take it that doesn't work as written?
채택된 답변
추가 답변 (1개)
Sean de Wolski
2012년 3월 16일
1 개 추천
Ahh!
Difference between FileName and FileName_in. The issue has nothing to do with spaces.
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!