Learn R Programming

matlab (version 0.7-6)

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 base::trunc.

Examples

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

Run the code above in your browser using DataLab