Dear Friends(adsbygoogle = window.adsbygoogle || []).push({});

I have made 2D plot in matlab and want to convert it in 3D can you give me any suggestions please.

if

s=x^2+y^3

x=linspace(0,2);

plot(y,s,'b')

this gives the plot of 2D

I want to make it in 3D for any value of z axis(-1 to 1)

what changes i have to do ??????

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to make 3D plot in matlab

**Physics Forums | Science Articles, Homework Help, Discussion**