Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-windows way to invoke Matlab from Mathematica

This was asked before, but the solution doesn't seem to work on MacOS. Wolfram Library has a package for 7 year old Matlab version. Is there a solution that works on MacOS 10.6 and Matlab 7.9?

I want to call CVX from Mathematica

like image 587
Yaroslav Bulatov Avatar asked Mar 02 '11 04:03

Yaroslav Bulatov


1 Answers

You could use RunThrough["command",expr], this runs the external command command, and feeds expr (a Mathematica expression) as input to command

An example of a suitable command would be "matlab -r \"matlab expr\"", you could place your CVX specific code in the "matlab expr" string.

like image 146
tlehman Avatar answered Sep 22 '22 02:09

tlehman