English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
1

Im trying to generate a simple cubic unit cell using matlab. Does anyone know how to do this.

2007-02-13 18:45:37 · 1 answers · asked by Tyrell29 2 in Science & Mathematics Engineering

1 answers

something like:
x=[0,0,0,0,1,1,1,1];
y=[0,0,1,1,0,0,1,1];
z=[0,1,0,1,0,1,0,1];
plot (x,y,z) {or plot3?}
this will draw the vertex points,
but if you try plot(x,y,z,'-') will probably draw also lines between vertexs, if you need more you can always write "help plot", this will give you more informations and examples and also related commands

2007-02-13 19:02:20 · answer #1 · answered by sparviero 6 · 1 0

fedest.com, questions and answers