フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

fopen failing with @ or . in filename

2 ビュー (過去 30 日間)
Cagdas Ozgenc
Cagdas Ozgenc 2013 年 3 月 9 日
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 件)

per isakson
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]
>>

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by