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

📄 exm060232_1.m

📁 matlab mfiles实例分析
💻 M
字号:
clf;t=6*pi*(0:100)/100;y=1-exp(-0.3*t).*cos(0.7*t);				
tt=t(find(abs(y-1)>0.05));ts=max(tt);								%<2>
plot(t,y,'r-','LineWidth',3)											%<3>
axis([-inf,6*pi,0.6,inf])												%<4>
set(gca,'Xtick',[2*pi,4*pi,6*pi],'Ytick',[0.95,1,1.05,max(y)])	%<5>
grid on																	%<6>
title('\it y = 1 - e^{ -\alphat}cos{\omegat}')						%<7>
text(13.5,1.2,'\fontsize{12}{\alpha}=0.3')							%<8>
text(13.5,1.1,'\fontsize{12}{\omega}=0.7')							%<9>
hold on;plot(ts,0.95,'bo','MarkerSize',10);hold off				%<10>
cell_string{1}='\fontsize{12}\uparrow';								%<11>
cell_string{2}='\fontsize{16} \fontname{隶书}镇定时间';			%<12>
cell_string{3}='\fontsize{6}  ';										%<13>
cell_string{4}=['\fontsize{14}\rmt_{s} = ' num2str(ts)];			%<14>
text(ts,0.85,cell_string)												%<15>
xlabel('\fontsize{14} \bft \rightarrow')							%<16>
ylabel('\fontsize{14} \bfy \rightarrow')				 			%<17> 

⌨️ 快捷键说明

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