Make dla with circles instead of pixels

조회 수: 2 (최근 30일)
george korris
george korris 2023년 2월 2일
댓글: William Rose 2023년 2월 12일
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.

채택된 답변

William Rose
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
george korris
george korris 2023년 2월 12일
Yes you are correct @William Rose! Sorry to bother you! You are awesome ! Thank you for your valuable time and comments!
William Rose
William Rose 2023년 2월 12일
@george korris, you’re welcome and good luck aggregating🙂

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Thermal Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by