www.gusucode.com > fixedpoint 案例源码程序 matlab代码 > fixedpoint/UseTheColonOperatorWithSignedAndUnsignedOperandsExample.m
%% Use the colon Operator With Signed and Unsigned Operands % a= fi(int8(-1)); b = uint8(255); c = a:b; len = c.WordLength signedness = c.Signedness %% % The word length of |c| requires an additional bit to handle the % intersection of the ranges of |int8| and |uint8|. The data type of |c| is % signed because the operand |a| is signed.