| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
#include "matrix.h" mxChar *mxGetChars(const mxArray *array_ptr);
Pointer to the first character in the mxArray. Returns NULL if the specified array is not a character array.
Call mxGetChars to access the first character in the mxArray that array_ptr points to. Once you have the starting address, you can access any other element in the mxArray.
![]() | mxGetCell (C and Fortran) | mxGetClassID (C and Fortran) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |