Create a circle in the matrix with zeros
조회 수: 64(최근 30일)
I have a Matrix D=onse(N,N).
I would like to make a circle with radius R at the center at (i0,j0) with filled zeros.
I wrote something like that but it takes so long time in my sub-loop to calculate it. Do you have a better idea how can we make such "0" circle inside the matrix?
Thank you for your help!