I am trying to run my .m file from eclipse using matlabControl but i get an error in matlab console
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Vinay Sheshadri
el 6 de Ag. de 2016
Respondida: Walter Roberson
el 6 de Ag. de 2016
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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Java Package Integration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!