www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ComparingNumericValueswithSpecialNonnumericValuesEQNExample.m
%% Comparing Numeric Values with Special Nonnumeric Values %% % Compare the logical value |true| to the double integer |1|. isequaln(true,1) %% % Notice that |isequaln| does not consider data type when it tests for % equality. %% % Similarly, compare |'A'| to the ASCII-equivalent integer, |65|. isequaln('A',65) %% % The result is logical |1| (|true|) since |double('A')| equals |65|.