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$?
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
KSSV
el 10 de Jul. de 2022
y = linspace(0,4) ;
z = linspace(0,6) ;
[Y,Z] = meshgrid(y,z) ;
X = Y.^2/8 ;
surf(X,Y,Z)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots 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!