Saving text and data to an excel file

1 回表示 (過去 30 日間)
Jenny
Jenny 2014 年 1 月 16 日
回答済み: Friedrich 2014 年 1 月 16 日
If I have the following text and data:
a = {'N', 'NE', 'E'};
b=[1 2 3];
How to I save the text and data as a 2 x 3 matrix to an excel file?
N E S
1 2 3

採用された回答

Friedrich
Friedrich 2014 年 1 月 16 日
Hi,
try
xlswrite('out.xlsx',[a;num2cell(b)])

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by