read different file formats then return their values
古いコメントを表示
How can I read (.CEP) file format through matlab. I tried fscanf and then disp. fscanf is not working and disp always displays -1 for all my .CEP files!!!
So, what command cann I use to read them?
8 件のコメント
Doug Hull
2011 年 5 月 11 日
What is a .CEP file?
Yasmin Tamimi
2011 年 5 月 11 日
Andrew Newell
2011 年 5 月 11 日
Can you open the file in an ordinary text editor? If you could post a sample of the contents of such a file, it would help.
Andrew Newell
2011 年 5 月 11 日
By the way - you never use disp to read a file.
Yasmin Tamimi
2011 年 5 月 12 日
Walter Roberson
2011 年 5 月 12 日
Possibly the fopen() is case-sensitive for the file name -- or possibly those should be zeros instead of capital-O.
When fid is -1 that indicates that the fopen() failed. You can use
[fid,message] = fopen('N1RONNO.CEP','r');
and then look at the message to see why the open failed.
Yasmin Tamimi
2011 年 5 月 13 日
Walter Roberson
2011 年 5 月 13 日
fid will only be a file identifier. You will need to textscan() or fscanf() or the like to read the data. See Oleg's example.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Standard File Formats についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!