Clear Filters
Clear Filters

Error in MATLAB when connectiing with java

1 view (last 30 days)
I’m using Matlab 7.12.0 (R2011a) and Netbeans IDE 8.0.1. I use matlabcontrol API to connect Matlab and java application. When I try this example :
MatlabProxyFactoryOptions options = new MatlabProxyFactoryOptions.Builder().setUsePreviouslyControlledSession(true).build();
MatlabProxyFactory factory = new MatlabProxyFactory(options);
MatlabProxy proxy = factory.getProxy();
proxy.eval("disp('hello world')");
proxy.disconnect();
the error message Undefined variable “matlabcontrol” or class “matlabcontrol.MatlabClassLoaderHelper.configureClassLoading” comes in matlab.
How should I solve this problem? Please guide me.
Thanks in advance.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!