How can i read these number from text file?

1 回表示 (過去 30 日間)
cemsi888
cemsi888 2015 年 1 月 26 日
コメント済み: Luuk van Oosten 2015 年 1 月 26 日
Good morning everyone, today i have question too. I will add Picture of Problem in order to better explain tro you. My question is how can i read numbers from txt file? As you see my Picture there are too many number and each column belongs to one Parameter. How can i say matlab that these column belongs to this Parameter and another column to another. Thanx for help

採用された回答

Luuk van Oosten
Luuk van Oosten 2015 年 1 月 26 日
編集済み: Luuk van Oosten 2015 年 1 月 26 日
You could tell matlab upon importing that the data is semicolon separated (;, delimited as they call it).
try something like:
M = dlmread('yourfile.txt', ';')
Good luck.
Also, have a look here for more info!
  2 件のコメント
cemsi888
cemsi888 2015 年 1 月 26 日
編集済み: cemsi888 2015 年 1 月 26 日
Do you know how can i say that forexample first column belongs to one Parameter and another colums to other. because every column belong to another Parameter.and in my program i have structure and in this structure we have 181 different Parameters.I hope Picture help you to understand my question
Luuk van Oosten
Luuk van Oosten 2015 年 1 月 26 日
You can make a new cell/array/table for certain specific columns and name them yourself. someting like:
Spec_Data = zeile{1,1}(:,1)
But the image and description are not helping that much... you can always ask a new question!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScripts についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by