www.gusucode.com > fixedpoint 案例源码程序 matlab代码 > fixedpoint/CompareTwofiObjectsSixExample.m
%% Compare Two fi Objects % Use the |le| function to determine whether the real-world value of one % |fi| object is less than or equal to another. %% a = fi(pi); b = fi(pi, 1, 32); a <= b %% % Input |a| has a 16-bit word length, while input |b| has a 32-bit word % length. The |le| function returns |0| because after quantization, the % value of |a| is greater than that of |b|.