MATLAB
请问相移为什么不是从零度开始往负的方向变化呢?代码如下:
clc
clear
L = 10e-3;
C = 100E-6;
Vd = 10;
Vo = 20;
Fs = 1000;
Ro = 20;
Vref = 5;
D = 1 - (Vd / Vo);
Vp = Vref / D;
Vap = -Vo;
Ic = -(1-D)*Vo /Ro;
num = [L*Ic Vap*(D - 1)];
den = [L * C /power((1-D),2) L/(Ro * power((1-D),2)) 1];
k = 1 / (Vp * power((1-D),2));
sys1 = k * tf(num,den);
bode(sys1)复制代码