Prev: Matrix Rotation About Origin
Next: Line Type Scaling
From: Stefan Griebel on 14 Jul 2010 13:28 I'm attempting the same: Passing a matlab structure to C, and unwrapping it using all of the built in mxarray functions. I thought the following example on the Mathworks documentation site would be helpful (http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f42645.html), but typing it verbatim, I get errors. I'm using R2008a. Does anyone have experience with the libstruct function? >> sm.p1 = 476; sm.p2 = -299; sm.p3 = 1000 sm = p1: 476 p2: -299 p3: 1000 >> sc = libstruct('c_struct', sm) ??? Error using ==> feval Undefined function or method 'lib.c_struct' for input arguments of type 'struct'. Error in ==> libstruct at 17 ptr=feval(['lib.' structtype],initialvalue); >>
|
Pages: 1 Prev: Matrix Rotation About Origin Next: Line Type Scaling |