help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

need help regarding phase margin calculation


From: kanta
Subject: need help regarding phase margin calculation
Date: Tue, 16 Feb 2010 13:58:38 +0800

 
 

Dear Sir,
 
I am new user for octave GNU. I don't know how to calculate phase margin using extrapolation for a bode plot with if or for loop. previously i done this in MATLAB and loop code is
for i=1:1:30
if((mag(i)>1) & (mag(i+1)<1))
j=i
y2=mag(i);
y1=mag (i+1)
x2=w(i)
x1=w(i+1)
end
end
how this will do in octave. could you please help me out?
 
Thanks & Regards,
Kanta

reply via email to

[Prev in Thread] Current Thread [Next in Thread]