# Matlab program that can plot (x,y)

Status
Not open for further replies.

#### sepedeh

##### Newbie level 1
ergent matlab

hello
iwant to write the program in matlab that it can be plot(x,y);
0≤x≤600
(.317y)^2=[((1.5/x)+(1.5*x)-(.27*x*y))^2]+[((1.5*x)+(.27*x*y))^2];
can you help me.
thanks alot

Re: ergent matlab

you can do this by

syms x y;
y=sqrt((((1.5/x)+(1.5*x)-(.27*x*y))^2)+(((1.5*x)+(.27*x*y))^2))/.317;
ezplot('y',[0 600])

Added after 3 hours 55 minutes:

after i plot this function with matlab ifound it a straight line
so i did this chech to see if it is wrong or not

>>syms x y;
>>y=sqrt((((1.5/x)+(1.5*x)-(.27*x*y))^2)+(((1.5*x)+(.27*x*y))^2))/.317;
>>solve ans =

5/(2500+81*y^2)*((2500+81*y^2)*(9*y-50+50*i+9*i*y))^(1/2)
-5/(2500+81*y^2)*((2500+81*y^2)*(9*y-50+50*i+9*i*y))^(1/2)
5/(2500+81*y^2)*(-(2500+81*y^2)*(-9*y+50+50*i+9*i*y))^(1/2)
-5/(2500+81*y^2)*(-(2500+81*y^2)*(-9*y+50+50*i+9*i*y))^(1/2)

>> pretty(ans)

[ 2 1/2 ]
[ ((2500 + 81 y ) (9 y - 50 + 50 I + 9 I y)) ]
[ 5 --------------------------------------------- ]
[ 2 ]
[ 2500 + 81 y ]
[ ]
[ 2 1/2 ]
[ ((2500 + 81 y ) (9 y - 50 + 50 I + 9 I y)) ]
[ -5 --------------------------------------------- ]
[ 2 ]
[ 2500 + 81 y ]
[ ]
[ 2 1/2 ]
[ (-(2500 + 81 y ) (-9 y + 50 + 50 I + 9 I y)) ]
[5 ----------------------------------------------- ]
[ 2 ]
[ 2500 + 81 y ]
[ ]
[ 2 1/2]
[ (-(2500 + 81 y ) (-9 y + 50 + 50 I + 9 I y)) ]
[-5 -----------------------------------------------]
[ 2 ]
[ 2500 + 81 y ]
>> solve(x)

ans =

0

so this fn hasn't any effect in x

Status
Not open for further replies.