Two questions about plotting multiple lines
이전 댓글 표시
I'm trying to plot a ruled surface: that is, a surface composed of a lot of straight lines (in 3d). Now, given end points (x1,y1,z1) and (x2,y2,z2) of a line, the command for plotting it is
line([x1,x2],[y1,y2],[z1,z2])
In my case I have 60 such lines, and matrices holding all the x, y and z values. So here are my questions:
- How can I draw multiple lines, other than using a "for" loop? Is there a version of the "line" command above where the inputs can be arrays of coordinate values?
- Is there a hidden line algorithm for such a plot? I know you can show or hide lines in surfaces, but can it be done with multiple straight lines in 3D?
Thank you!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!