Rounds to the nearest integer. |
||
Syntax |
i = Round(m) |
|
Argument |
Name |
Description |
m |
A scalar, vector, or matrix. |
|
Output |
Name |
Description |
i |
Each element rounded to nearest integer. |
|
Example |
Find the nearest integer of elements in a vector: |
|
Syntax |
||
i = Round([-1.9,2.1,2.8]) |
||
Result |
||
i = -2 2 3 |
||
See Also: |