Created
July 24, 2009 08:25
-
-
Save anonymous/153915 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i=1:length(Bmec)/2 | |
if abs(Bmec(i))>=2 | |
for j=1:(length(Bfou))/2 | |
if abs(Bfou(j))>=2 | |
while abs((Bfou(j)-Bmec(i))./Bmec(i)>0.05) %hata payi yuksek | |
g=g+g*0.1;%hava araligini arttir %10 | |
[reg]=Fourier_open_circuit(g,delta_z,Rout_stat,Rin_stat,La,h_mag,h_rot_tooth,ts_y,Nr,Ns,rpm,mu_mr,Br,N,I); | |
Bfou=reg(6).Bp; | |
end | |
elseif (abs(Bfou(j)-Bmec(i))./Bmec(i)<=0.05) %hata payi uygun if dongusunden cikip bir sonraki Bmec degerine bak | |
i=i+1; | |
break | |
else %hata degeri uygun degil hala | |
j=j+1; | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment