Plotting a unit cell from a matrix

10 visualizaciones (últimos 30 días)
Mma Kenya
Mma Kenya el 23 de Jun. de 2017
Comentada: Walter Roberson el 26 de Jun. de 2017
Hi everyone. I would like to plot a 3x3 matrix into a unit cell along with a 3-length vector. Each row of the matrix being a lattice vector. The matrix is like this:
Mcell = [ 4.85, 0.00, -0.02; 0.00, 8.41, -0.00; -1.67,-0.00, 4.87]
and the vector is like this:
Vect = [ 6.72e-01; 2.88e-01; -6.81e-01]
Please, how can I do it? Thank you very much from my heart for any suggestion. All the best.
  4 comentarios
Rik
Rik el 26 de Jun. de 2017
Plot3 will plot a continuous line, so you need to trick it. You can do this by plotting over itself, so you have to return to a previous point. If this doesn't help, show a MWE, so we can reproduce your plot and fix your problem.
Walter Roberson
Walter Roberson el 26 de Jun. de 2017
plot and plot3 break the line when they encounter nan or inf.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by