Jump to content

How to run program in php(Matlab)


makhan

Recommended Posts

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');

?>

Link to comment
https://forums.phpfreaks.com/topic/55870-how-to-run-program-in-phpmatlab/
Share on other sites

  • 2 years later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.