Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 exec 命令从 php 调用 matlab 函数。但是,如何将参数从 php 传递给我的 matlab 文件?以及如何从 matlab 函数中获取结果。
您可以使用调用函数将参数传递给 matlab。
您可以在此处找到所有详细信息。
返回数据需要通过标准输出或临时文件。您需要使您的 matlab 函数很好地排列这些数据,以便您可以轻松地在 php.ini 中解析它。最好的方法取决于您的数据类型。