PHP can't run Matlab function
Show older comments
I want run Matlab function from PHP I run this code on MAC, local server using MAMP and Matlab R2016b. this is my php code:
exec ($command = "/Applications/MATLAB_R2016b.app/Contents/MacOS/StartMATLAB computeSIFT.m ");
When i execute that code it's works and Matlab can open 'copmputeSIFT.m' file. But when i want to call Matlab and call 'computeSIFT()' function, there is nothing happened.I think there is no mistake on my code. this is the code:
exec($command = "/Applications/MATLAB_R2016b.app/Contents/MacOS/StartMATLAB nojvm -nodesktop -nodisplay -r \"computeSIFT()\"");
I already search on google, copy paste their code and the result is the same when there is '-r' on my command.Is there some different syntax on matlab R2016b?
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!