matlab mxcreatecellmatrix函数语法

发表matlab mxcreatecellmatrix函数相关文章
一句话说明: 2-D cell array

mxCreateCellMatrix (C and Fortran)

2-D cell array

C Syntax

#include "matrix.h"
mxArray *mxCreateCellMatrix(mwSize m, mwSize n);

Fortran Syntax

mwPointer mxCreateCellMatrix(m, n)
mwSize m, n

Arguments

m

Number of rows

n

Number of columns

Returns

Pointer to the created mxArray, if successful. If unsuccessful in a standalone (non-MEX-file) application, returns NULL in C (0 in Fortran). If unsuccessful in a MEX-file, the MEX-file terminates and returns control to the MATLAB® prompt. The function is unsuccessful when there is not enough free heap space to create the mxArray.

Description

Use mxCreateCellMatrix to create an m-by-n two-dimensional cell mxArray. The created cell mxArray is unpopulated; mxCreateCellMatrix initializes each cell to NULL in C (0 in Fortran). To put data into cells, call mxSetCell.

mxCreateCellMatrix is identical to mxCreateCellArray except that mxCreateCellMatrix can create two-dimensional mxArrays only, but mxCreateCellArray can create mxArrays having any number of dimensions greater than 1.

Examples

See the following examples in matlabroot/extern/examples/mx.

See Also

mxCreateCellArray

欢迎转载,转载请注明来自一手册:http://yishouce.com/matlab/func/mxcreatecellmatrix

与matlab mxcreatecellmatrix用法相关的文章

友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1