Learn R Programming

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

Run this code
fix(c(1.3, 2.5, 3.7))

Run the code above in your browser using DataLab