www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ExclusiveORTruthTableExample.m

    %% Exclusive-OR Truth Table
% Create a truth table for |xor|.
A = [true false]

%%
B = [true; false]

%%
C = xor(A,B)