东大matlab实践课四.doc

上传人:11****ws 文档编号:2999940 上传时间:2019-05-16 格式:DOC 页数:14 大小:114.94KB
下载 相关 举报
东大matlab实践课四.doc_第1页
第1页 / 共14页
东大matlab实践课四.doc_第2页
第2页 / 共14页
东大matlab实践课四.doc_第3页
第3页 / 共14页
东大matlab实践课四.doc_第4页
第4页 / 共14页
东大matlab实践课四.doc_第5页
第5页 / 共14页
点击查看更多>>
资源描述

1、实验六四A=0,1,0,0;0,0,1,0;0,0,0,1;-65.5,-213.8,-204.2,-54;B=0;0;0;1;C=1562,1875,0,0;D=0; sys=ss(A,B,C,D); bode(sys);-150-100-50050Magnitude (dB)10-2 10-1 100 101 102 103-270-180-900Phase (deg)Bode DiagramFrequency (rad/sec)六1 b=1; a=1,1; freqz(b,a);0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1050100Normalized

2、 Frequency ( rad/sample)Phase(degrees)0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-200204060Normalized Frequency ( rad/sample)Magnitude (dB) clear;num=1,0;den=1,1;dbode(num,den,1);-1000100200300400Magnitude (dB)10-1 100 10104590Phase (deg)Bode DiagramFrequency (rad/sec)2 w=0:0.05:20; num=2,0; den=1,sqrt(

3、2),1; h=freqs(num,den,w); mag=abs(h); phase=angle(h); subplot(2,1,1) plot(w,mag); title(幅频特性) subplot(2,1,2); plot(w,phase); title(相频特性)0 2 4 6 8 10 12 14 16 18 20-2-1012 幅幅幅幅0 2 4 6 8 10 12 14 16 18 2000.511.5 幅幅幅幅clear; num=2,0; den=1,sqrt(2),1; sys=tf(num,den); bode(sys);-50-40-30-20-10010Magnitu

4、de (dB)10-2 10-1 100 101 102-90-4504590Phase (deg)Bode DiagramFrequency (rad/sec)3 clear; b=1,2,1; a=1,0,0.61; freqz(b,a);10-2 10-1 100-200-1000100Normalized Frequency ( rad/sample)Phase(degrees)0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-100-50050Normalized Frequency ( rad/sample)Magnitude (dB) clear;

5、b=1,2,1; a=1,0,0.61; dbode(b,a,1);-300-200-1000100Magnitude (dB)10-2 10-1 100 101-180-135-90-450Phase (deg)Bode DiagramFrequency (rad/sec)4 clear; z=1;2; p=-1;-2; k=3; num,den=zp2tf(z,p,k); w=0:0.05:20; h=freqs(num,den,w); mag=abs(h); phase=angle(h); subplot(2,1,1) plot(w,mag);title(幅频特性)subplot(2,1

6、,2);plot(w,phase); title(相频特性 )0 2 4 6 8 10 12 14 16 18 20333 幅幅幅幅0 2 4 6 8 10 12 14 16 18 20-4-2024 幅幅幅幅 clear;z=1;2;p=-1;-2;k=3; num,den=zp2tf(z,p,k);sys=tf(num,den);bode(sys);9.54249.54249.54249.54249.54249.54249.5424Magnitude (dB)10-2 10-1 100 101 102090180270360Phase (deg)Bode DiagramFrequency

7、(rad/sec)实验十一一1t=0.5;N=20;fs=N/t;T=1/fs;n = -N:1:N;xn=(sin(10*pi*n*T)+eps)./(10*pi*n*T+eps);X = fft(xn,4096);f=0:4095/4096/T;plot(f,abs(X)0 5 10 15 20 25 30 35 4000.511.522.533.544.52 clear; t=0.2;N=20;fs=N/t;T=1/fs;n = -N:1:N;xn=(sin(10*pi*n*T)+eps)./(10*pi*n*T+eps);X = fft(xn,4096);f=0:4095/4096/T;plot(f,abs(X)0 10 20 30 40 50 60 70 80 90 1000246810123 clear; t=0.01;N=20;fs=N/t;T=1/fs; n = -N:1:N; xn=(sin(10*pi*n*T)+eps)./(10*pi*n*T+eps); X = fft(xn,4096); f=0:4095/4096/T; plot(f,abs(X)

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 实用文档资料库 > 策划方案

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。