clc
clear
x = [-3, 0, 0, 2, 5, 8];
y = [-5, -2, 0, 3, 4, 10];
z_and = x & y;
disp('Part (b) - z = x & y:')
disp(z_and)
z_or = x | y;
disp('Part (c) - z = x | y:')
disp(z_or)
z_xor = xor(x, y);
disp('Part (d) - z = xor(x, y):')
disp(z_xor)
To embed this project on your website, copy the following code and paste it into your website's HTML: