Writing multiple structures to user specified excel file

3 ビュー (過去 30 日間)
Ibro Tutic
Ibro Tutic 2016 年 4 月 5 日
コメント済み: Ibro Tutic 2016 年 4 月 5 日
I have a variable amount of structures with 4 fields, each containing 1x1 blocks of data. How would I go about writing multiple structures to a user specified excel file?
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 5 日
Can you give an example?
Ibro Tutic
Ibro Tutic 2016 年 4 月 5 日
Sure, they look like this, in general.

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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 5 日
編集済み: Azzi Abdelmalek 2016 年 4 月 5 日
load Example
v=[struct2cell(Data1.data)]
out=v(:,:)'
xlswrite('file.xlsx',out)
  18 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 5 日
You did not look at my code!
out=[]
for i=1:length(data1)
v=[struct2cell(Data(i).data)];
out=[out;v(:,:)'];
end
Ibro Tutic
Ibro Tutic 2016 年 4 月 5 日
Oh that worked! Thank you!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by