在 javascript 上运行 matlab 代码 [英] Run matlab code on javascript
问题描述
我有一个简单的 matlab 代码.它加载一个文件并使用该文件中的数据绘制图形.我希望当我按下 html 按钮时,绘制图形.我在网络/博客上阅读了一些建议.我必须使用 com 服务器吗?
I have a simple matlab code. It loads a file and draws a graph using datas in this file. I want that when I press a html button, the graph is drew.I read some recommendations on web/blogs. Have to I use com server?
编辑
我的应用还不是网络应用.我在本地电脑上运行它,它只是一个 htm 文件.我现在使用谷歌浏览器.
My app is not a web app yet. I run it local pc, it is just a htm file.I use google chrome for now.
推荐答案
您的问题的答案不是必需的,您可以有一些解决方法来避免使用 COM 服务器(尽管官方 文档).
The answer to your question is not necessary, you could have some workarounds to avoid using a COM server (although it's well explained in the official documentation).
这取决于您的 web 应用程序是 Java 应用程序、PHP 等.
It depends if your webapp is a Java application, PHP, etc.
使用 PHP 的一种简单方法是使用 passthru 来运行您的 matlab应用程序,稍后您可以链接到生成的文件.
A simple approach using PHP would be using passthru to run your matlab app and later you could link to the generated file.
相关问题:
这篇关于在 javascript 上运行 matlab 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!