How to create body centered cubic structure?

Hi,
I want to create bcc structure. However, I was able to create sample cubic strcture but I could not do for bcc. Any suggestions
x =[1 0 0];
y =[0 1 0];
z =[0 0 1];
[X,Y,Z]=meshgrid(x,y,z);
figure, scatter3(X(:),Y(:),Z(:));

 Respuesta aceptada

Athul Prakash
Athul Prakash el 16 de Oct. de 2020

0 votos

You could create 2 different X/Y/Z combinations, each for corners and centre of the lattice.
Then plotting them one after the other using 'hold on' should work.
Hint: Centres are the same as corners but shifted half-step in all 3 directions.

1 comentario

Sara
Sara el 18 de Oct. de 2020
Thank you for your answer,
I have doen what you suggest and I got what I want.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Crystals en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 12 de Oct. de 2020

Comentada:

el 18 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by