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