Is there a way to import the results or data (such as matrices) from Matlab to Mathematica automatically? Or is there any way to run a Matlab program first and then run a Mathematica program automatically?
Thanks for any helpful answers!
There are at least three approaches to tackling this:
'Through' Java, using Mathematica's JLink and Matlab's own Java capabilities.
Either program can be run from the command line, execute a script and return output as required. Both programs can run 'external' commands and capture the results. Look, for example, in the Mathematica documentation under the heading External Programs. Matlab has similar capabilities.
If you are running on Linux, or a similar OS, you can pipe the output from one program into the other.
The difficulties of these approaches vary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With