Unable to run matlab script from php

I can happily trigger Matlab script from command line using exec() command but when it comes to doing this via PHP I dont get any success.
exec("\'C:\Program Files\MATLAB\R2019a\bin\matlab.exe\' -nosplash -nodesktop -r \'run('G:\MATLAB_Scripts\sample.m')\" 2>&1");
I have checked php.in file where disable_function =____
I'm lost for what to do now, Google hasnt given me much help apart from unresolved posts to various forums.
Thanks in advance!

1 件のコメント

Guillaume
Guillaume 2019 年 5 月 21 日
Sounds like a PHP problem more than a matlab problem, so you'd be better off asking on a PHP forum.
However, note that the matlab license typically does not allow you to run scripts on a web server, so even if you find a solution you may not be allowed to use it.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

リリース

R2019a

タグ

質問済み:

2019 年 5 月 21 日

コメント済み:

2019 年 5 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by