Make dla with circles instead of pixels
4 次查看(过去 30 天)
显示 更早的评论
Hi everyone I have a code for 2D DLA but it adds pixels to an initial pixel and I would like them to not be pixels but small squares or small circles instead. I have managed to make the initial area to which the pixels from the dla are added a square or a circle but I cant find a way to add circles or other squares to it.
0 个评论
采纳的回答
William Rose
2023-2-6
Here is a script that does what I think you are requesting. Each monomer in the aggregate is represented by a circle. I will use 3 figures to illustrate this:
Above: Possible circles to use for each monomer, ranging from diameter d=6 pixels to d=20 pixels.
Above: Aggregate array with d=10. Inset: original aggregate, 1 pixel per monomer.
Above: Aggregate array with d=20. Inset: original aggregate, 1 pixel per monomer.
I think the image with d=10 is just as good as the one with d=20, so I recommend it, since it takes up 4 times less memory than the image with d=20. You can change d in the script, run it, and decide.
8 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle & Nuclear Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!