Drawing honey comb structure by matlab
<p>Graphene Honey comb lattice structure. I am trying to generate graphene honey comb structure. I want to join the nearest neighbors point in the lattice. </p>

<p>Any help would be highly appreciated.</p>

<p>This is my code.</p>

<pre><code>X1=0.5:3:10

X2=1.5:3:10

X3=0:3:10;

X4=2:3:10;

for y=0:sqrt(3):10;

a=plot(y,X1,'*--')

hold on

b=plot(y,X2,'*--')

hold on

end

for y=0.5*sqrt(3):sqrt(3):10;

c=plot(y,X3,'*--')

hold on

d=plot(y,X4,'*--')

end
</code></pre>