clear clc A=[1 3 0;-1 2 1;0 0 2] B=[2 3 4;1 2 3;-1 1 2] disp("AB= ") A*B disp("BA= ") B*A disp("clearly AB is not equal to BA")