Matlab refuses to work via php! Help!

7 visualizaciones (últimos 30 días)
Lost
Lost el 20 de Mzo. de 2014
Respondida: Lost el 20 de Mzo. de 2014
This is my Matlab file: tester = 2*3 save('c:\xampp\htdocs\temp\test_result.txt',... 'tester','-ASCII'); quit force
If I run the file in Matlab, great! test_result gets created no problem.
If I run the file via the command prompt: start /b matlab -nosplash -nodesktop -minimize -r Test Great! test_result gets created no problem.
If I run it through PHP.... Matlab loads in my task manager and just sits there. it doesn't do anything!
My apache service runes from the user MatlabTester, which has full permission to read/write/etc to the c:\xampp\htdocs\temp folder. Dunno why Matlab refuses to save the file when I run it through php!
Help me, please!

Respuestas (1)

Lost
Lost el 20 de Mzo. de 2014
Sorry, my php code is actually:
<?php
exec("start /b matlab -nosplash -nodesktop -minimize -r Test");
?>
Forgot to put it in the Code tag.

Categorías

Más información sobre String Parsing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by