假设圆半径为r,则 [x, y] = meshgrid( -r : r ); circle_mat = x.^2 + y.^2; figure, imshow( circle_mat ); title( 'Circle Mask' );