www.gusucode.com > fixedpoint 案例源码程序 matlab代码 > fixedpoint/UseTheColonOperatorWithFloatingPointAndFiOperandsExample.m

    %% Use the colon Operator With Floating-Point and fi Operands
% If any of the operands is floating-point, the output has the same word
% length and signedness as the |fi| operand
x = fi(1):10
%%
% |x = fi(1):10| is equivalent to |fi(1:10, true, 16, 0)| so |x| is signed and
% its word length is 16 bits.