フィルターのクリア

How to use data in a structure

2 ビュー (過去 30 日間)
James
James 2014 年 4 月 10 日
編集済み: Azzi Abdelmalek 2014 年 4 月 10 日
Hi,
I used the following code A=importdata('filename'). This worked out great and gave me the data from the file in a structure "A". The structure has a matrix "data" and an array "txt" in it. How do I use that matrix / aray later in the script? I tried to set B=data and C=txt but it gave me the error of unknown variables.
Thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 4 月 10 日
編集済み: Azzi Abdelmalek 2014 年 4 月 10 日
If your struct variable is A
B=A.data
C=A.textdata

その他の回答 (1 件)

Alberto
Alberto 2014 年 4 月 10 日
If all your data is inside the structure A, you should call data and txt like this:
B=A.data
C=A.txt

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by