Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to import the results or data from Matlab to Mathematica automatically?

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!

like image 932
js85 Avatar asked Mar 25 '12 16:03

js85


1 Answers

There are at least three approaches to tackling this:

  1. 'Through' Java, using Mathematica's JLink and Matlab's own Java capabilities.

  2. 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.

  3. 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.

like image 116
High Performance Mark Avatar answered Oct 13 '22 01:10

High Performance Mark