How to plot the surface of the parabolic cylinder $y^2=8x$ in the first octant bounded by the planes $y=4$ and $z=6$?
조회 수: 12 (최근 30일)
이전 댓글 표시
How to plot the surface of the parabolic cylinder
in the first octant bounded by the planes y=4 and z=6?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1060470/image.png)
Y = linspace(0,4,100);
Z=linspace(0,6,100);
surf(Y.^2/8,Y,Z);
I have parametrized the cylinder as
,
. But unable to plot the desired surface.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1060485/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1060480/image.png)
Please help to generate the surface
댓글 수: 2
채택된 답변
KSSV
2022년 7월 10일
y = linspace(0,4) ;
z = linspace(0,6) ;
[Y,Z] = meshgrid(y,z) ;
X = Y.^2/8 ;
surf(X,Y,Z)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
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!