Feb 11, 2011 #1 R roshan2 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
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
Feb 18, 2011 #2 N navarro_itd Newbie level 1 Joined Mar 13, 2009 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,285 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.
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.