Dear all, I have matrix of binary with n=5 A=[0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 .... 1 1 1 1 1] but I only want to take a submatrix with 3 number 1 inside subA=[ 0 1 1 0 1 1 0 1 0 1 0 1 1 1 0 ........] and subB=[0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 1 ..... 0 1 1 0 1 1 0 1 0 1 0 1 1 1 0 ........] . Couyld you help me? Thanks
MATLAB: Create binary 0 and 1
0 and 1
Best Answer