BOTH problems use the SAME MATLAB CODE. The following patter…

BOTH problems use the SAME MATLAB CODE. The following pattern detector MATLAB code is provided:   (Hint:  Rows are “m” and columns are “n”) % CDS-130 – Extra Credit Quiz 4 clear; clccounter = 0; A = [0 0 0 1 1 0 1 0 ;     1 0 1 1 0 1 1 0 ;     1 0 1 1 0 1 0 0 ;     0 1 1 1 1 0 1 1 ;     0 1 1 1 1 1 0 1 ;     0 1 0 0 0 0 0 0 ;     1 0 0 0 0 1 1 1 ;     0 1 1 0 0 1 0 1 ]; for m = 1:8    for n = 2:7        if ( A(m,n-1) == 0 && A(m,n) == 1 && A(m,n+1) == 0  )            counter = counter + 1;        end    endendcounter Question:  What is displayed for “counter” in the Command Window?

Each block of data in a computer’s hard drive is addressed w…

Each block of data in a computer’s hard drive is addressed with a unique number.  A given computer hard drive uses a binary 8 bit number to address all 256 data blocks. If a computer designer wants to double the number of addressable data blocks to 512, the MINIMUM number of bits of the address length is: