www.gusucode.com > fixedpoint 案例源码程序 matlab代码 > fixedpoint/UseFiAsAColonOperatorExample.m
%% Use fi as a Colon Operator % When you use |fi| as a colon operator, all colon operands must have integer % values. a = fi(1,0,3,0); b = fi(2,0,8,0); c = fi(12,0,8,0); x = a:b:c %% % Because all the input operands are unsigned, |x| is unsigned and the % word length is 8. The fraction length of the resulting vector is always 0.