I want to store two worksheets together in excel sheet from matlab.
1 回表示 (過去 30 日間)
古いコメントを表示
please help as I am only able to store only one worksheet at a time.
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2012 年 11 月 21 日
a=rand(5)
b=rand(5)
xlswrite('filename.xls',a,'sh1')
xlswrite('filename.xls',b,'sh2')
4 件のコメント
Azzi Abdelmalek
2012 年 11 月 26 日
編集済み: Azzi Abdelmalek
2012 年 11 月 26 日
You din'nt mention the sizes of your variables (number of lines and column of each variable). If your variables have the same number of lines you can concatenate them for example:
var1=rand(10,2);
var3=rand(10,4);
var3=rand(10,5;
data=[var1 var2 var3]
xlswrite('filename.xls',data)
If not, tell us what kind of data are you using?
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!