powered by
Generates a 2D disk with a gradual falloff.
Disk generated using the following formula:
The origin of the coordinate system is the center of the matrix.
generate_2d_disk(dim = 11)
Default 11. The dimensions of the resulting square matrix.
11
# NOT RUN { image(generate_2d_disk(101), asp=1) # }
Run the code above in your browser using DataLab