Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - English


ndims

number of dimensions of an array

Syntax

n = ndims(A)

Arguments

A

an array.

n

an integer, the number of dimensions of the array.

Description

n = ndims(A) return the number of dimension of the array A. n is greater than or equal to 2.

Examples

A=rand(2,3);
ndims(A)

A=rand(2,3,2);
size(A),ndims(A)

H=[1/%s,1/(%s+1)]
ndims(H)

See also

  • size — size of objects
Report an issue
<< modulo Elementary Functions |, || >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon May 22 12:37:05 CEST 2023