load -ascii : inconsistent behavior
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to read a tab-delimited ascii file. It has 99 rows and 5 columns.
In R2012b, the command
load FILENAME.ext -ascii
correctly loads the file, producing a variable FILENAME of size 99 x 5.
On a different machine, with R2012a, the same command applied to the same file produces a variable FILENAME of size 1 x 495.
That is, under R2012a the load command is reading the file as a single line of values, rather than as a 2-dimensional array. Strangely, if I use the Import Wizard in R2012a, it immediately recognizes FILENAME as containing a 99 x 5 array of tab-delimited values.
I need to have this code work under both versions of Matlab. Any explanations for the inconsistent behavior?
FWIW the code also worked under earlier versions.
Thanks. Hal
0 件のコメント
採用された回答
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Low-Level File I/O についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!