⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chap2_ex3_2.m

📁 无线通讯系统的matlab仿真程序;主要包括同步
💻 M
字号:
% Chap2_Ex3_2.m

close all, clear all, clc

Q=5;
V=10;
wn=sqrt(2)*(Q/V);
zeta=sqrt(2);
K=1;
cbar=0.25;
a=[1 2*zeta*wn wn^2];
r=roots(a);
s1=min(r);
s2=max(r);
tau1=-1/s1;
tau2=-1/s2;
tfinal=5*tau2;
ti=linspace(0,tfinal,1000);
ci=K*cbar*(1+(tau2.*exp(-ti/tau2)-tau1.*exp(-ti/tau1))/(tau1-tau2));
plot(ti,ci)
tmin=-1; cmin=-0.01; cmax=1.1*cbar;
axis([tmin tfinal cmin cmax])
hold on
plot([tmin 0],[0 0],'k')
plot([0 0],[0 cbar],'k:')
plot([0 tfinal],[cbar cbar],'k')
xlabel('\itt \rm(min)')
ylabel('\itc_{\rm2}\rm(\itt\rm),  lbs salt per gal','FontSize',11)
title('Step Response of Salt Concentration in Second Tank','FontSize',11)
text(0.5,0.2,'\itc\rm(\itt\rm)','FontSize',11)
text(4.5,0.15,'\itc_{\rm2}\rm(\itt\rm)','FontSize',11)
text(3,0.26,'\itc \rm= 0.25 lbs salt per gal','FontSize',11)
text(3.05,0.27,'_','FontSize',11)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -