Passing C struct out to Matlab space



I have a need to see the content of a struct defined in a C-mex
program. I know there is a Matlab struct and if I really want, I can
copy the members of the C struct to Matlab struct but I really want to
avoid that. I also tried to simply set plhs[0] to the pointer to the
struct and it didn't work. It there a quick and dirty way that allows
one to see what's in a C struct in Matlab space?

.



Relevant Pages