I have this structure but I need to export it to an CSV spreadsheet and I'm not sure how to do that... All the values are saved in the structure 'Element'. Such as, Element(1) will pull up Hydrogen, Element(2) will pull up Helium, etc...
Names: 'Hydrogen'
Chemical_Symbol: 'H'
Atomic_Number: 1
Class: 'Other nonmetals'
Atmoic_Weight: 1.0080
Electrons_in_Each_Shell: [1 0 0 0 0 0 0]
Names: 'Helium'
Chemical_Symbol: 'He'
Atomic_Number: 2
Class: 'Noble Gases'
Atmoic_Weight: 4.0026
Electrons_in_Each_Shell: [2 0 0 0 0 0 0]
Names: 'Lithium'
Chemical_Symbol: 'Li'
Atomic_Number: 3
Class: 'Alkali metals'
Atmoic_Weight: 6.9400
Electrons_in_Each_Shell: [2 1 0 0 0 0 0]
Names: 'Beryllium'
Chemical_Symbol: 'Be'
Atomic_Number: 4
Class: 'Alkaline earth metals'
Atmoic_Weight: 9.0122
Electrons_in_Each_Shell: [2 2 0 0 0 0 0]
Names: 'Boron'
Chemical_Symbol: 'B'
Atomic_Number: 5
Class: 'Metalloids'
Atmoic_Weight: 10.8100
Electrons_in_Each_Shell: [2 3 0 0 0 0 0]

1 件のコメント

KSSV
KSSV 2018 年 12 月 5 日
Try with xlswrite

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

 採用された回答

madhan ravi
madhan ravi 2018 年 12 月 5 日

0 投票

2 件のコメント

OMac
OMac 2018 年 12 月 13 日
Unfortunately my Professor wanted it done manually but that function worked like a charm. I ended up figuring it out and that function helped me figure out adding headers. Thanks!
madhan ravi
madhan ravi 2018 年 12 月 14 日
Anytime :)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCondensed Matter & Materials Physics についてさらに検索

質問済み:

2018 年 12 月 5 日

コメント済み:

2018 年 12 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by