problem about reading ascii file
古いコメントを表示
Hi I am reading ascii file by fscanf.However with the same code but different number of lines i cannot read the other ascii file. I sent you the code as screenshot.One of them gives me the correct amount of matrix bu the other reads only 1x1 matrix. Please help Regards, Seyfi
7 件のコメント
Azzi Abdelmalek
2015 年 8 月 20 日
Instead of attaching images, just past your code and attach your text file
Walter Roberson
2015 年 8 月 20 日
In particular we need your second text file, the one that is not reading properly.
Note: it appears to me that you are forgetting to fclose(fid) when you are done with it. Your "fig" in the 3.png is the file identifier and in the 4.png we can see it has the value 138, which indicates that you must have at least 138 files open, which can become a problem itself.
seyfi girgin
2015 年 8 月 20 日
seyfi girgin
2015 年 8 月 20 日
Walter Roberson
2015 年 8 月 20 日
You could probably zip the second file and attatch the .zip
seyfi girgin
2015 年 8 月 21 日
seyfi girgin
2015 年 8 月 21 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!