how to draw a plane?
Mostrar comentarios más antiguos
Hai,
I am working on optics. I have plotted a lens in matlab. The rays of light emerging out of the lens, after undergoing refraction in the lens, needs to be projected on a square plane in front of the lens. How is it possible to draw a plane in matlab? Looking forward to hearing from you soon.
BSD
Respuesta aceptada
Más respuestas (2)
Sean de Wolski
el 21 de Sept. de 2011
0 votos
You could also use a surf or a slice
1 comentario
Walter Roberson
el 21 de Sept. de 2011
If your plane was along the z axis, then surf would not be able to handle it, as surf requires unique (x,y) for every z value.
Starting in MATLAB R2024b, you can use constantplane to create a 2D plane in 3D axes. However, unlike surfaces and patches, the ConstantPlane will extend infinitely in all directions within the axis limits.
For example, to create a flat plane along the z axis at z=0,
constantplane('z',0)
grid on
2 comentarios
DGM
el 4 de Oct. de 2024
Finally! This is the logical extension of xline() and yline().
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

