Learn R Programming

matlab2r (version 1.5.0)

zeros: Matrix of zeros

Description

wrapper of zeros_or_ones() that replicates the behavior of the zeros() function on Matlab

Usage

zeros(n1, n2 = n1, ...)

Value

An n1-by-n2 matrix of zeros

Arguments

n1

number of rows

n2

number of columns

...

extra dimensions

Examples

Run this code
zeros(5)
zeros(5, 3)

Run the code above in your browser using DataLab