MATLAB API automation
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I wrote on Windows a C++ standalone application, which communicates with the MATLAB engine through its API. Namely:
#include <engine.h>
engPutVariable( ...
In order for this to work, I should run in the background:
matlab.exe /automation
which puts it in a server mode.
Three questions please:
1. Can I open such an automation with a full GUI support, and not just a console window? I'd like afterwards to work with the created workspace conveniently.
2. Can I do the same thing in Linux, since the automation flag seems to have gone missing?
3. Considering it, MathWorks didn't actually invest much in a full decent API. It just opens a socket to get data and run scripts, instead of doing so through the console. Maybe someone already wrote something better, which can listen in the background of a fully fledged matlab instance, and work on all platforms?
Thanks.
0 个评论
回答(3 个)
James Tursa
2011-6-7
Just don't close the engine. i.e., don't call engClose at the end of your program. Once the program ends, your MATLAB Engine session will still be up and running with all engine data intact.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Write COM Applications to Work with MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!