Continue to Site

# urgent Help needed with matlab 3d plot

Status
Not open for further replies.

#### mands1982

##### Newbie level 1
matlab 3d plot

Hi i am new to matlab and really need help to get a 3d surface plot of 3 functions with 3 variables. so far i know that i need to use matrices to plot them so i created one for each variable

p=[0:.1:111.1];
z=[0:.1:111.1];
f=[0:.1:111.1];

then i have my three functions that i want to plot they are
F=0.005*z*0.8-0.05;
Z=((0.5*p*0.7)/(p+1))-0.05*f-0.05;
P=((0.5*(111.1-p-z-f))/(111.1-p-z-f+1))-((0.5*z)/(p+1));

can anybody please help me to fiigure out how i can turn this into a 3d surface plot in matlab

Re: matlab 3d plot

mands1982 said:
Hi i am new to matlab and really need help to get a 3d surface plot of 3 functions with 3 variables. so far i know that i need to use matrices to plot them so i created one for each variable

p=[0:.1:111.1];
z=[0:.1:111.1];
f=[0:.1:111.1];

then i have my three functions that i want to plot they are
F=0.005*z*0.8-0.05;
Z=((0.5*p*0.7)/(p+1))-0.05*f-0.05;
P=((0.5*(111.1-p-z-f))/(111.1-p-z-f+1))-((0.5*z)/(p+1));

can anybody please help me to fiigure out how i can turn this into a 3d surface plot in matlab

Status
Not open for further replies.