Mackay-Icosahedron

版本 1.1.0.0 (2.1 KB) 作者: Dmitry
Function for generating of Mackay-Icosahedron
531.0 次下载
更新时间 2010/5/19

查看许可证

This function generates so called Mackay-Icosahedron. In this function it's possible to change distance between atoms (bonding length) number of shells and also composition of two different kinds of atoms

Use following piece of code to visualise the particle:
radius = 1; details = 15;
for i=1:size(X,1)
[X_mesh,Y_mesh,Z_mesh] = ellipsoid(X(i),Y(i),Z(i),radius,radius,radius,details);
s(i) = surface(X_mesh,Y_mesh,Z_mesh);
set(s(i),'EdgeColor','none','Tag',strcat('atom_',int2str(i)));
if(type(i)==1)
set(s(i),'FaceColor','red');
else
set(s(i),'FaceColor','blue');
end
end

axis equal
axis off
light
lighting gouraud

引用格式

Dmitry (2024). Mackay-Icosahedron (https://www.mathworks.com/matlabcentral/fileexchange/27535-mackay-icosahedron), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

I include some nice code for visualisation (see description)

1.0.0.0