1 2 3 4
function [center_x,center_y] = find_center(size_x,size_y) center_x = 0.5*(size_x +1); center_y = 0.5*(size_y +1);