フィルターのクリア

How can I rebuild the Table as a 5x1 structured array with "struct" Code ??

2 ビュー (過去 30 日間)
Jack
Jack 2013 年 9 月 27 日
コメント済み: Jack 2013 年 9 月 27 日
Table = {'GasName','GasSymb','a','b';[ 'Helium', 'Hydrogen', 'Oxygen', 'Chlorine','CarbonDioxide']',[ 'He', 'H2', 'O2', 'Cl2','CO2']',[0.0341,0.244,1.36,6.49,3.59]',[0.0237,0.0266,0.0318,0.052,0.0427]'}
Table =
'GasName' 'GasSymb' 'a' 'b'
[41x1 char] [12x1 char] [5x1 double] [5x1 double]

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 27 日
data1=['Helium','Hydrogen','Oxygen','Chlorine','CarbonDioxide']';
data2=[ 'He', 'H2', 'O2', 'Cl2','CO2']';
data3=[0.0341,0.244,1.36,6.49,3.59]';
data4=[0.0237,0.0266,0.0318,0.052,0.0427]';
table=struct('GasName',data1,'GasSymb',data2,'a',data3,'b',data4)

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by