Calling MATLAB and running m files from Excel VBA macro
1 次查看(过去 30 天)
显示 更早的评论
I want to ask about calling MATLAB and executing '.m' files using Excel VBA. I have searched about this, but I couldn't find the right solution yet. Do you have any idea how I should write VBA macros to do these?
- MATLAB version: R2008b
- m file: f_ann.m
Thanks a lot in advance for your time and reading my question.
0 个评论
回答(2 个)
Chirag Gupta
2011-7-19
You can also achieve the same using MATLAB as a COM server. Please see sample code below:
VBA is very similar.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!