필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

fopen failing with @ or . in filename

조회 수: 1 (최근 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