Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Matlab loop variable prompt is a double precision type, how can it become plastic?
Matlab loop variable prompt is a double precision type, how can it become plastic?
Matlab integer functions are: fix, floor, ceil, round.

Fix is rounded to zero, such as fix (-1.3) =-1; fix( 1.3)= 1;

Floor is rounded to negative infinity, such as floor (-1.3) =-2; Floor (1.3) =1;

Ceil is rounded to positive infinity, such as Ceil (-1.3) =-1; ceil( 1.3)= 2;

Round is rounded to the nearest integer, such as round (-1.3) =-1; round(- 1.52)=-2;

1.000 can be treated as 1 with floor circle fix.

But if you are rounding off the tail, use floor.