Invalid matrix while using str2num on large data sets
5 ビュー (過去 30 日間)
古いコメントを表示
When using str2num on a matrix of size 1000x70 my code works. This means I must procees many...many data files. I used the UNIX CAT fuction to create one large data file from many small data files. Now when I use the str2num on the large matrix of size 10000x700 it returns an empty matirx. If I process each file independently the code works. How can I get around this str2num problem?
0 件のコメント
回答 (2 件)
Walter Roberson
2012 年 3 月 8 日
R2008b, Linux-64, it worked for me on a considerably larger matrix.
Which release are you using, which OS, and 32 or 64 bit?
My first thought would be that you are running out of memory.
0 件のコメント
Jan
2012 年 3 月 8 日
str2num uses eval to convert the string. It is not a good idea to use this for the conversion. I suggest to use fscanf instead.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!