Draw a unit cell in the orthonormal coordinates system

Hi everyone, I want to construct a unit cell from a 3x3 matrix. I did it using plot3. The thing is that the sides of this unit cell overlay with the x,y,z axis. How can I then correct this, by putting my unit cell in the orthormal coordinates system x,y,z? (so that the cell sides do not match anymore with the x,y,z axis...). Thank you very much for advance. All the best !!!

4 Commenti

What do the 9 values in your 3x3 matrix represent? Rows are points, and columns are x,y,z? So you have 3 points? If so, how does this define a box in 3-D space? Are you assuming the diagonally opposite point is at the origin? Attaching a diagram, screenshot, or code to make those, would help. http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Actually this 3x3 matrix represents the cell parameters, each row is a lattice vector, so you can plot the unit cell using for example VESTA. I realized that I can do the same thing with matlab using plot3. The problem with plot3 is that the sides of this unit cell overlay with the x,y,z axis. As a consequence, if I want to place a point outside the unit cell, the unit cell is changing its dimensions because the axis correspond to the cell sides. I hope you understand my concern...
I understand you're concerned but sorry, I'm having a hard time visualizing what you have and what you want. I don't have your 3x3 array and I don't know what VESTA is, so I think I don't have it. Like I said before " Attaching a diagram, screenshot, or code to make those, would help."
Did you ever figured out, I'm struggling with the same thing. Could you post your code?

Accedi per commentare.

Risposte (0)

Tag

Richiesto:

il 30 Giu 2017

Commentato:

il 7 Mag 2018

Community Treasure Hunt

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

Start Hunting!

Translated by