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$?
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
KSSV
il 10 Lug 2022
y = linspace(0,4) ;
z = linspace(0,6) ;
[Y,Z] = meshgrid(y,z) ;
X = Y.^2/8 ;
surf(X,Y,Z)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!