Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

dim

Outputs the dimension of the given object.

dim(M)

Returns a scalar containing the dimension of the given matrix.

Argument M

Matrix

Returns 1. entry

Scalar

Example

dim([1,2,3,4,5])

Results in the value 5.

dim(str)

Returns a scalar containing the length of the given scalar, which is always 1.

Argument str

Scalar

Returns 1. entry

Scalar

dim(str)

Returns a scalar containing the length of the given string.

Argument str

String

Returns 1. entry

Scalar

Example

dim("hello")

Results in the value 5.

Clone this wiki locally