% Given a matrix (image), fills its borders with 0, for a better % visualization. % Parameters: A: matrix % color: GL of the border % Returns: The matrix with the border function y=ImageBorder(A, color); width=size(A); height=width(2); width=width(1); y=A; y(1,1:width)=0; y(height, 1:width)=0; y(1:height,1)=0; y(1:height,width)=0;