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.

Help me with the code

Status
Not open for further replies.

roshan2

Junior Member level 1
Junior Member level 1
Joined
Jan 31, 2011
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,384
Actually i am doing a matlab code to plot a graph.the dispersion graph.Beta - x axis and Frequency- Y axis

i want to extend the X axis to the negative side ie.want negative values in the x axis.

my code which showed result in the positive axis is as follows:

beta=0:2;
w=1:5;
p=6.9;
wL=3.03;
wR=1.6;
wsh=2.2;
wse=2.2;
for i=1:5
beta(i)=acos(1-1/2*(wL^2/w(i)^2+w(i)^2/wR^2-wsh^2/wR^2-wse^2/wR^2));
beta=beta*1/p;
end
plot(beta,w)


please respond
 

Hi

If you want to extend to the negative axis, you need to begin the count in the cycle from a negative value, i.e. w=-5:5.

But, I think a negative frequency doesn't have physical meaning. Instead, try to plot real and imaginary for beta.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top