I have a matrix a: a= [1 2 3; 1 2 3; 1 2 3] I want to add zero rows and cols and convert it to b:
b= 1 2 3 0 0 1 2 3 0 0 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0how is it possible?(size of 'a' can be different, in fact it's a matrix which shows image m*n)
Best Answer