Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: structure array in mex file
Replies: 4   Last Post: Aug 28, 2013 11:02 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Phil Goddard

Posts: 350
Registered: 1/27/12
Re: structure array in mex file
Posted: Aug 27, 2013 5:31 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

You need to use mxIsStruct (http://www.mathworks.com/help/matlab/apiref/mxisstruct.html) to check that you have been passed a structure, then functions like mxGetField and the other 8 methods listed below it at http://www.mathworks.com/help/matlab/access-data.html.

There are multiple examples linked off the above doc pages.

Phil.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.