data(myfile.txt) is
96 77 62 41 6 21 2 42
24 46 80 94 36 20 75 85
61 2 93 92 82 61 45 53
49 83 74 42 1 28 94 21
90 45 18 90 14 20 47 68
i used command as;
dlmread('myfile.txt', '\t', 0, 0)
ans= 96
77
62
41
6
21
is should display original 5x8.. why the answer looks like this?

1 件のコメント

Oleg Komarov
Oleg Komarov 2011 年 9 月 4 日
Post the data formatted as code: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup#answer_18099

サインインしてコメントする。

 採用された回答

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 9 月 4 日

0 投票

Perhaps the original data file switches to spaces instead of tabs.

カテゴリ

ヘルプ センター および File Exchange で Data Import from MATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by