Invalid matrix while using str2num on large data sets
조회 수: 1 (최근 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!