fix
December 5th, 2009 Posted in Functions
fix Round towards zero.
fix(X) rounds the elements of X to the nearest integers
towards zero.
Syntax
1 | B = fix(A) |
Description
B = fix(A) rounds the elements of A toward zero, resulting in an array of integers. For complex A, the imaginary and real parts are rounded independently.
Examples
Leave a Reply
You must be logged in to post a comment.