Using matlab to read array from a textfile

Hey, I've got a text file created by my arduino (using megunolink) and it contains a 60x60 array of data. An 5x5 example of the code layout would look like:
[10 15 20 25 30; 11 16 21 26 31; 12 17 22 27 32; 13 18 23 28 33; 14 19 24 29 34;]
How can I import this directly into matlab as a matrix? Also, would it be easier if I made the arduino output as literally just a massive list of 3600 numbers?
Cheers, Harris

1 件のコメント

TAB
TAB 2013 年 2 月 25 日
編集済み: TAB 2013 年 2 月 25 日
Question:
How the data is in your file. Is it in single line including comma and braces (as you are showing above) or in row & column form ?

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

回答 (1 件)

Thorsten
Thorsten 2013 年 2 月 25 日

0 投票

help dlmread
help textread

カテゴリ

ヘルプ センター および File ExchangeMultidimensional Arrays についてさらに検索

質問済み:

2013 年 2 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by