MATLAB: Is it possible to pass “array of structures” as an argument to the CALLLIB function in MATLAB 7.7 (R2008b)

arrayscallingloadlibraryMATLAB

I have an array of structures which I wish to pass to the CALLLIB function. At present I use a FOR loop to pass one structure at a time and get the return value. I am unable to pass the entire structure instead of indexing through it using FOR loop and get an array of output results.

Best Answer

The ability to pass an array of structures as an argument to CALLLIB function is not available in MATLAB 7.7 (R2008b).
The workaround is to pass each of the structures in the array seperately, using a FOR loop.