gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-08/Ex0807.m

    %例8-7 MATLAB中的逻辑运算函数
A=rand(2,4)
B=A>0.5
C=A<0.9
xor(B,C)
all(C)
any(B)