Home > Common Problem > body text

matlab fix function usage

藏色散人
Release: 2020-02-14 15:15:38
Original
14729 people have browsed it

matlab fix function usage

matlab fix function usage

1. fix function: round towards zero

2. Usage instructions: y=fix(x) The function rounds the zero direction of the element in x to obtain y which is an integer array. For the complex number z, round the real part and imaginary part respectively

3, give an example

>> x = [1-2.9i  3+4.5i  5-6.7i  9-10.2i]
   x = 1.0000 - 2.9000i   3.0000 + 4.5000i   5.0000 - 6.7000i   9.0000 -10.2000i
>> y = fix(x)
   y = 1.0000 - 2.0000i   3.0000 + 4.0000i   5.0000 - 6.0000i   9.0000 -10.0000i
Copy after login

The above is the detailed content of matlab fix function usage. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template