I need a help when importing data by using uiimport!

2 ビュー (過去 30 日間)
Le Huy
Le Huy 2014 年 4 月 18 日
編集済み: Asaduzzaman Md 2017 年 6 月 30 日
I imported data from file.txt (the file.txt contain number as matrix) by using uiimport, but after importing data, i dont know how to call the number from the data. my code is:
A=uiimport('-file')
%then i chose the file in the Import Wizard
A =
NewTextDocument: [3x2 double]
I mean: how to show and use that matrix?

採用された回答

Mischa Kim
Mischa Kim 2014 年 4 月 18 日
編集済み: Mischa Kim 2014 年 4 月 18 日
Le Huy, the data is accessible through
A.NewTextDocument
or, if you want to access individual elements, e.g.,
A.NewTextDocument(2,1) % get element in row 2, column 1
  2 件のコメント
Le Huy
Le Huy 2014 年 4 月 19 日
編集済み: Le Huy 2014 年 4 月 19 日
OK I got it! thank you so much Mischa Kim! one more problem: how can I add data to each cell of my uitable individually! i mean: after each calculation in my project (in my case: the calculation is in the code For i= : ), i want to add each result to the cell that i plan to, and the result may be a number or a string. How is the code i can use? I 'm beginner so I hope your welcome!thank you!
Asaduzzaman Md
Asaduzzaman Md 2017 年 6 月 30 日
編集済み: Asaduzzaman Md 2017 年 6 月 30 日
Dear Mischa Kim
how can we retrive data when file name variable such as for first case:
A.NewTextDocument may be second case different A.DATA1
I cannot solve this? Can you help this points, please.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by