LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run a Matlab Function and return an array

Hi, I am trying to calculate the arx model and i need to use matlab to do so. I was wondering does anybody know how to program a function which will send an array and the array length as parameters and then retreive an array once the function is completed.
 
thanks,
Mathieu C.
0 Kudos
Message 1 of 2
(4,370 Views)
Hello Mathieu,

I would suggest looking at the the matlabdemo shipping example (<install dir>\samples\activex\matlabdemo.prj).  This project shows how to get matrices and strings back from Matlab, among other things.  I would especially look at the GetString and GetMatrix helper functions in the matlabutil.c file.

Thanks
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 2
(4,339 Views)