| MATLAB® | ![]() |
#include "matrix.h" mxArray *mxGetProperty(const mxArray *pa, mwIndex index, const char *propname);
mwPointer mxGetProperty(pa, index, propname) mwPointer pa mwIndex index character*(*) propname
Pointer to an mxArray which is a class object.
Index of the desired element of the object array.
In C, the first element of an mxArray has an index of 0, the second element has an index of 1, and the last element has an index of N-1, where N is the total number of elements in the mxArray.
In Fortran, the first element of an mxArray has an index of 1, the second element has an index of 2, and the last element has an index of N, where N is the total number of elements in the mxArray.
Name of the property whose value you want to extract.
A pointer to the mxArray of the specified propname on success.
Common causes of failure include:
Specifying an index to an element outside the bounds of the mxArray. Use mxGetNumberOfElements or mxGetM and mxGetN to test the index value.
Specifying a nonexistent propname.
Specifying a propname with an attribute setting that restricts access to its value.
Insufficient memory (in the heap) to hold the returned mxArray.
Call mxGetProperty to get the value held in the specified element. In pseudo-C terminology, mxGetProperty returns the value at:
pa[index].propname
mxSetProperty, mxGetNumberOfElements, mxGetM, mxGetN
![]() | mxGetPr (C and Fortran) | mxGetScalar (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |