Exb3.m
资源名称:power.rar [点击查看]
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:0k
源码类别:
其他行业
开发平台:
Matlab
- num = 100;
- den = [1 26 216 576];
- [numo, deno, denc]=frdesign(num, den); %PID design
- w = .1:.1:20;
- [mag, phase] =bode(numo, deno, w);
- dB = 20*log10(mag);
- figure(1), plot(w, dB), grid
- xlabel('w, rad/sec'), ylabel('dB')
- figure(2), plot(w, phase), grid
- xlabel('w, rad/sec'), ylabel('Degrees')