Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
good evening , i'm working on some equation on matlab and i need to plot them in figures , i used this code
VB
x=[0:9];
y=[0:9];
for w=1:10
    n=sqrt(x(1,w))+sqrt(y(1,w));
    z(1,w)=power(n,.5);
end
plot(x,z);



this one will plot the relation between z and x only .
how could i plot y too in the same equation ?
thank you
Posted
Comments
Kiran Chandrashekhar 28-Jan-13 21:33pm    
Have you tried 'hold on;' plot(y,z). Is this what you were looking ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900