I am trying to plot solid concentric circles in a meshgrid but the code I used only plots the borders of the circles.
theta = linspace(0, 2*pi, 100);[X, Y] = meshgrid(1:1:4, theta);a = 0;b = 0;plot(a+cos(Y).*X, b+sin(Y).*X);axis equal
What I intend to do is to generate solid concentric circles and that the points inside the circles are valued as either 1 (white) or 0 (black). Below is a picture for visualization. Can anyone help me?
Thanks,
Best Answer