I am trying to run my .m file from eclipse using matlabControl but i get an error in matlab console
1 回表示 (過去 30 日間)
古いコメントを表示
I have a .m file that on loading to matlab manually generates the Simulink model for the same. Now i am trying to achieve the same using eclipse from java. I have already configured MatlabControl with my eclipse.
My main function in java has the following code
MatlabProxyFactory factory = new MatlabProxyFactory(options);
MatlabProxy proxy = factory.getProxy();
proxy.eval("test_3.m"); // 'test_3.m' is the name of my .m file
On executing the java file from eclipse it opens Matlab and prints the following error on Matlab console
"Undefined variable "test_3" or class "test_3.m" "
How can I solve this so that my .m file runs and generates the Simulink model?
Any help would be appreciated!!
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Java Package Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!