Info
此问题已关闭。 请重新打开它进行编辑或回答。
fopen failing with @ or . in filename
1 次查看(过去 30 天)
显示 更早的评论
I am really in trouble. fopen fails to open if filename contains @ symbol or extra . other than the one before file extension. I have so many files to load with these symbols.
I also tried csvread and dlmread, same problem.
Is there any other way to load files in Matlab?
Thanks
1 个评论
回答(1 个)
per isakson
2013-3-9
This works for me on R2012a 64bit
>>
>> fid = fopen( 'cssm.@.txt', 'r' );
>> cac = textscan( fid, '%[^\n]' )
cac =
{1x1 cell}
>> cac{:}
ans =
[1x213 char]
>>
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!