|
88 | 88 |
|
89 | 89 | # Add crossover line |
90 | 90 | subplot(magh); hold(True); |
91 | | -loglog([10^-4, 10^3], [1, 1], 'k-') |
| 91 | +loglog([1e-4, 1e3], [1, 1], 'k-') |
92 | 92 |
|
93 | 93 | # Replot phase starting at -90 degrees |
94 | 94 | bode(L, logspace(-4, 3)); |
95 | 95 | (mag, phase, w) = freqresp(L, logspace(-4, 3)); |
96 | 96 | phase = phase - 360; |
97 | 97 | subplot(phaseh); |
98 | | -semilogx([10^-4, 10^3], [-180, -180], 'k-') |
| 98 | +semilogx([10^-4, 1e3], [-180, -180], 'k-') |
99 | 99 | hold(True); |
100 | 100 | semilogx(w, phase, 'b-') |
101 | | -axis([10^-4, 10^3, -360, 0]); |
| 101 | +axis([1e-4, 10^3, -360, 0]); |
102 | 102 | xlabel('Frequency [deg]'); ylabel('Phase [deg]'); |
103 | 103 | # set(gca, 'YTick', [-360, -270, -180, -90, 0]); |
104 | 104 | # set(gca, 'XTick', [10^-4, 10^-2, 1, 100]); |
|
0 commit comments