Please see the MATLAB plot attached to this question. How can I access the coordinates of the squares in the circle? Could anybody help me with the MATLAB code?
The N value that you use with linspace N (r1) is too large.
LINSPACE(X1, X2, N) generates N points between X1 and X2.
You must reduce the resolution of your analysis using a value N between 0 and 5000 depending of your RAM. If you use higher values you will generate a very large matrix with meshgrid and your computer will not be able to deal with.
[X,Y] = MESHGRID(x,y) transforms the domain specified by vectors
This is quite similar to my problem. I would like to split irregular objects in to three smaller region in order to obtain area of each region. Any suggestions?.