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
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 Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!