Directly call C library functions from MATLAB ... libstruct Convert MATLAB structure to C-style structure ...
www.mathworks.com