passing parameters to a matlab function from php

Go To StackoverFlow.com

1

I want to call a matlab function from php using the exec command. However, how can I pass the parameters to my matlab file from php? And also how to get the results from the matlab function.

2012-04-04 19:04
by rajan sthapit
what kind of results? matrices - d_inevitable 2012-04-04 19:10


1

You can pass parameters to matlab using a call function.

You can find all the details to that here.

The return data would need to be through stdout or through a temporary file. You will need to make your matlab function lay this data out nicely so you can easily parse it in php. The best way of doing depends on your datatype.

2012-04-04 19:21
by d_inevitable
Ads