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(:));

 채택된 답변

Athul Prakash
Athul Prakash 2020년 10월 16일

0 개 추천

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

Sara
Sara 2020년 10월 18일
Thank you for your answer,
I have doen what you suggest and I got what I want.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Crystals에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 10월 12일

댓글:

2020년 10월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by