| 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" mxArray *mxDuplicateArray(const mxArray *in);
mwPointer mxDuplicateArray(in) mwPointer in
Pointer to a copy of the array.
mxDuplicateArray makes a deep copy of an array, and returns a pointer to the copy. A deep copy refers to a copy in which all levels of data are copied. For example, a deep copy of a cell array copies each cell and the contents of each cell (if any), and so on.
See
mexget.c in the matlabroot/extern/examples/mex folder
phonebook.c in the matlabroot/extern/examples/refbook folder
For additional examples, see mxcreatecellmatrix.c, mxgetinf.c, and mxsetnzmax.c in the matlabroot/extern/examples/mx folder .
![]() | mxDestroyArray (C and Fortran) | mxFree (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 |