How to convert my Matlab code into an Excel add-in?
4 次查看(过去 30 天)
显示 更早的评论
I would like to use Matlab to run a model simulation, all the calculations are done in Matlab, but inputs are from Excel file and the outputs are also returned to this excel file. How can I realize this process?
0 个评论
回答(1 个)
Paul Shoemaker
2018-8-16
Ji Li,
I'm not sure about doing an add-in, but have you considered using the Matlab command "xlsread" to read an Excel spreadsheet, which then feeds your Matlab simulation, and then using the Matlab command "xlswrite" to write results back to an Excel spreadsheet?
The workflow is different than what you described, but may be suitable for your needs.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!