matlab mxgetnumberofelements函数语法

发表matlab mxgetnumberofelements函数相关文章
一句话说明: Number of elements in array

mxGetNumberOfElements (C and Fortran)

Number of elements in array

C Syntax

#include "matrix.h"
size_t mxGetNumberOfElements(const mxArray *pm);

Fortran Syntax

mwPointer mxGetNumberOfElements(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Number of elements in the specified mxArray

Description

mxGetNumberOfElements tells you how many elements an array has. For example, if the dimensions of an array are 3-by-5-by-10, mxGetNumberOfElements returns the number 150.

    Note:   Fortran does not have an equivalent of size_t. mwPointer is a preprocessor macro that provides the appropriate Fortran type. The value returned by this function, however, is not a pointer.

Examples

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

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

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

See Also

mxGetDimensions, mxGetM, mxGetN, mxGetClassID, mxGetClassName

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

与matlab mxgetnumberofelements用法相关的文章

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