How to execute matlab code from already running instance?

Viewed 166

I've an already running instance of matlab and I want execute my matlab project from the same instance of matlab rather than opening a separate instance. Actually I need to have faster processing of matlab and this frequent opening makes it slow. How to I do that?.

I'm calling matlab from PHP:

$command = "matlab  -nojvm -nodesktop -nodisplay -r \"Preprocess('$photo_upload_path','$processed_photo_output_path');exit\"";
exec($command);

I'm using a windows machine.

1 Answers
Related