Create a logical array where the only true elements correspond to the locations where both of the following are true: mat1 is greater than 277 and mat2 plus 4 is less than 493.
a) Define a Boolean array
b) Write a loop for logical comparison
c) Perform matrix multiplication
d) Apply statistical analysis