![]() % Think: "addpath(.)" or just "cd(.)" into the directory first Which is invoked from PHP as: % Of course you have to make sure "myFunc" is available on the MATLAB path. For example, you could design your MATLAB function to receive the path of WAV file as input, process it and save any resulting image to disk: function myFunc(filename) Others have commented on how to pass input/output between PHP and your MATLAB script. Pass Parameters _ Shell Script - Octave Script.Running a cmd file without GUI popping up.How to call MATLAB from command-line and print to stdout before exiting.Here are some resources (make sure to also checkout the linked questions as well): ![]() If MATLAB installed on the server where the PHP application would be deployed (not your current development environment), you can invoke it directly just like any other program ( matlab -r ".") using whatever is the equivalent of EXECUTE command in PHP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |