matlab (version 1.0.2)

fix: MATLAB fix function

Description

Rounds toward zero.

Usage

fix(A)

Arguments

A
numeric to be rounded

Value

Returns vector containing integers by truncating the corresponding values of argument A toward zero.

Details

Simply invokes trunc.

See Also

ceil, Round

Examples

fix(c(1.3, 2.5, 3.7))