makhan Posted June 16, 2007 Share Posted June 16, 2007 Hi I am trying to run a matlab script.(This script you can run from the command line by command 'matlab -r scriptname'). But when I use this command inside a system or exec I don't get any output, nor does the matlab opens and executes as it does in case of command line.. I am doing like <?php echo exec(' matlab -r scriptname'); ?> Quote Link to comment Share on other sites More sharing options...
usercyberkamal Posted August 7, 2009 Share Posted August 7, 2009 @makhan: I too am working on php and have to embed a matlab code in it, but am not finding any way to do this. I am working on windows vista and using xampp server. If you have found any solution to this please help me out. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted August 7, 2009 Share Posted August 7, 2009 When you run matlab from a command prompt, does it work? Or does it tell you that matlab is not found? If it tells you matlab is not found you either: 1) Need to specify the absolute path to matlab.exe on your machine when you invoke it 2) Use PHP's putenv() function to modify your environment PATH variable 3) Modify the environment PATH variable for the whole machine Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.