matlab mxgetm函数语法

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

mxGetM (C and Fortran)

Number of rows in array

C Syntax

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

Fortran Syntax

mwPointer mxGetM(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Number of rows in the mxArray to which pm points.

Description

mxGetM returns the number of rows in the specified array. The term rows always means the first dimension of the array, no matter how many dimensions the array has. For example, if pm points to a four-dimensional array having dimensions 8-by-9-by-5-by-3, mxGetM returns 8.

    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.

For Fortran examples, see:

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

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

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

See Also

mxGetN, mxSetM, mxSetN

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

与matlab mxgetm用法相关的文章

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