Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Matlab program that can plot (x,y)

Status
Not open for further replies.

sepedeh

Newbie level 1
Joined
Mar 2, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
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(y)
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top