Learn R Programming

matlab (version 0.7-6)

size: MATLAB size function

Description

Provides dimensions of x.

Usage

size(x)

Arguments

x
numeric vector or matrix

Value

  • Returns class size_t containing the dimensions of input argument.

Details

Invokes base::length or base::dim depending on argument x.

Examples

Run this code
size(1:8)
size(matrix(1:8, 2, 4))

Run the code above in your browser using DataLab