Learn R Programming

matlab (version 1.0.4.1)

fix: MATLAB fix function

Description

Rounds toward zero.

Usage

fix(A)

Value

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

Arguments

A

numeric to be rounded

Author

P. Roebuck proebuck1701@gmail.com

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