c=[0 0 0 0];
a=[1 0 1 0];
b=[0 1 1 0];
c = (a==0)&(b==1)
%simplified
c = (~a)&b
Given the questions you have asked recently, I would strongly recommend you to take the free MATLAB Onramp tutorial to learn the essentials of MATLAB.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!