MATLAB Application Program Interface Reference Help Desk

mxDuplicateArray

Purpose

Make a deep copy of an array

C Syntax

Arguments

in

Pointer to the array's copy.

Description

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 the each cell (if any), and so on.

Example

See mxDuplicateArray.c in the mx subdirectory of the examples directory.



[ Previous | Help Desk | Next ]