Sharing toolbox (built-in functions) with two different versions of Matlab
Show older comments
Hello,
I have access to two different versions of Matlab. I need to use optimization toolbox in Simulink. The problem is that the version of Matlab that has Simulink does not include optimization toolbox. The one that includes optimization toolbox does not have Simulink installed. I was wondering if there is a way to use the optimization toolbox of one verion of Matlab from another. I am specifically interested in using "lsqnonneg()" and "lsqnonlin()" functions from the optimization toolbox in Simulink. Thanks in advance.
Ernur
Accepted Answer
More Answers (3)
Walter Roberson
on 1 Mar 2011
0 votes
Walter Roberson
on 1 Mar 2011
0 votes
As directly calling a routine from a different toolbox version is unstable, you are left with possibilities such as Jan describes for communicating between two sessions each running Matlab.
You might be able to do so productively on the the same system by using memmapfile() -- but that approach will likely run into synchronization problems.
There is a Matlab File Exchange contribution for sharing memory between matlab sessions using shared memory.
There is a Matlab File Exchange contribution "tcpudpip" which can use tcp or udp to communicate between different Matlab sessions, even if they are not on the same system. Exchanging actual variables is a bit of a nuisance, though.
Ernur
on 2 Mar 2011
0 votes
Categories
Find more on Server Management in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!