Plot a cylinder surface with axis along a line
조회 수: 6 (최근 30일)
이전 댓글 표시
How do i plot a cylinder with axis along a line? Say for example the axis of the cylinder should be 1,1,1.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/668748/image.png)
댓글 수: 0
답변 (1개)
KSSV
2021년 6월 29일
Read about the function cylinder. This will give you cylinder. Define your rotation marix, with the required angle and rotate the cylinder using this matrix.
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!