问题同上一篇博客,现在使用工具箱函数实现异或逻辑
% xor_newrbe.m
%% 清理
clear all
close all
clc
%% 输入
% 输入向量
P = [0,0,1,1;0,1,1,0]
%P =
%
% 0 0 1 1
%