[求助]MATLAB怎么做
有没有高手帮忙做MATLAB的课程设计MATLAB调用Excel例子
e=actxserver('excel.appliication');
eWorkbook=eWorkbooks.Add;
eVisible=1;
eSheets=e.ActiveWorkbook.Sheets;
eSheet1=eSheets.get('Item',1);
eSheet1.Active;
A=[1 2;3 4];
eActiveSheetRange=e.ActiveSheet.get('Range','A1:B2');
eActiveSheetRange.Value=A;%将A写入工作表
%eRange=e.ActiveSheet.get(‘Range’,’A1:B2’);
%B= eRange.Value;
%B=reshape(B[{:}],size(B));
eWorkbook.SaveAs('myfile.xls');
e.Quit;
e.delete;
还有高手这个怎么解释啊 QQ153786856 先谢谢了