a = [2 3 1 5; 1 0 3 1; 0 2 -3 2; 0 2 3 1]; % either works for multiplying a matrix with a scalar: disp(a * 7); disp(a .* 7);