有没有一种方法可以将结果或数据从Matlab自动导入到Mathematica? [英] Is there a way to import the results or data from Matlab to Mathematica automatically?

查看:433
本文介绍了有没有一种方法可以将结果或数据从Matlab自动导入到Mathematica?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将结果或数据(例如矩阵)从Matlab自动导入到Mathematica??还是有什么办法先运行Matlab程序,然后自动运行Mathematica程序?

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:

  1. 使用Mathematica的JLink和Matlab自己的Java功能来通过" Java.

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

这两个程序都可以从命令行运行,执行脚本并根据需要返回输出.这两个程序都可以运行外部"命令并捕获结果.例如,在Mathematica文档中的外部程序"标题下查看. Matlab具有类似的功能.

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.

如果您正在Linux或类似操作系统上运行,则可以将一个程序的输出传递到另一个程序中.

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.

这篇关于有没有一种方法可以将结果或数据从Matlab自动导入到Mathematica?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆