Using Mathlab with Ruby

Hi,
I am very new to Matlab and I don't know about all it's possibilities. I am analysing the possibilities of using Matlab externally from another program. Right now, our users are sending use a data set that we pass through a Matlab program. We are doing this manually, but we would liek to automatize the process.
I will build a website backend in Ruby and on the web interface, the user can upload a data file which I would like to pass to the Mathlab program via my Ruby programm and save the results.
I have seen that one can start Matlab as a Automation Server. Could I use this like an API to do what I want ?
Any help would be very useful.
David

回答 (3 件)

David
David 2014 年 9 月 16 日

0 投票

Any idea ?
Iain
Iain 2014 年 9 月 16 日

0 投票

I asked a similar question a couple of weeks ago and haven't managed to do much with it.
You can also compile a matlab program into an executable, and interact with that via system calls. - Though it effectively starts matlab each time, before executing the program.
David
David 2014 年 9 月 16 日

0 投票

Hi, thanks for your answer. This means that even if I create an matlab executable on my server, I still need to install the Matlab on that same server ?
I also run into this doc. I appears I could start matlab as an Automation Server and use javascript to communicate...
I did not test it yet, though :-o
Thanks

1 件のコメント

Iain
Iain 2014 年 9 月 17 日
No. It means you need to install the compiler runtimes on the system you want to run the compiled code.
If you then compile a program (a function), and run it on that system, it'll take a long while loading stuff in before it runs the function you want it to run.
As for the automation server - I'm pretty certain that the server will need matlab installed.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB Web App Server についてさらに検索

タグ

質問済み:

2014 年 9 月 12 日

コメント済み:

2014 年 9 月 17 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by