matlabからエクセルを開いて閉じる
显示 更早的评论
matlabで指定したエクセルを開きユーザーが入力後、保存して閉じるまでを行いたいです。
filename = 'C:\Users\Desktop\test.xlsm'
excelapp = actxserver('Excel.Application');
excelapp.Visible = 1;
wkbk = excelapp.Workbooks;
wdata = Open(wkbk,filename);
上記の方法で指定したエクセルを開くことはできましたが、閉じることができません。
流れとして、
matlabでエクセルを開く
matlabでダイアログを開く
ユーザーがエクセルを入力し、MATLABのダイアログでOKを押すと自動で保存し閉じるとしたいです。
宜しくお願いします。
2 个评论
MATLAB から Excel Spreadsheet にセル背景色やフォント色を指定してデータを書くにはどうしたらよいですか?https://jp.mathworks.com/matlabcentral/answers/95482-matlab-excel-spreadsheet
や
ActiveX を使用した Excel スプレッドシートへのデータの書き込みhttps://jp.mathworks.com/help/matlab/matlab_external/using-a-matlab-application-as-an-automation-client.html
が参考になるかも。
qrqr
2019-11-24
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 スプレッドシート 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!