clc
clear all
Lp=4.3e-3;
Ra=13.51;
f=logspace(0,6,1000);
w=2*pi*f;
num=[1];
den=[Lp/Ra 1];
[mag,pha]=bode(num,den,w);
figure(1);
loglog(f,mag,'b','LineWidth',2);
xlabel('f/Hz');
ylabel('Magnitude');
title('Command Tracking Frequency Response of the Current Loop');
axis([10^0 10^6 10^-4 10^0.5])
grid on
figure(2);
num=[1];
for i=0:4
Lp=Lp*(0.8+i*0.1);
den=[Lp/Ra 1];
[mag,pha]=bode(num,den,w);
loglog(f,mag,'LineWidth',2);
hold on
Lp=4.3e-3;
end
xlabel('f/Hz');
ylabel('Magnitude');
title('Command Tracking Frequency Response of Lp changing within 20% from
nominal');
axis([10^0 10^6 10^-4 10^0.5])
grid on
mt4
最新推荐文章于 2021-12-08 15:54:21 发布