当前位置:网站首页>Matlab绘制不同阻尼下的系统响应
Matlab绘制不同阻尼下的系统响应
2022-07-27 09:57:00 【用户9925864】
基于Matlab的GUI设计不同阻尼的系统响应
h0=figure('toolbar','none',...
'position',[198 56 350 468],...
'name','test');
h1=axes('parent',h0,...
'position',[0.25 0.45 0.5 0.5],...
'visible','off');
str1='当前阻尼比=';
z=0.52;
t=0:0.1:10;
y=step(1,[1 2*z 1],t);
hline=plot(t,y);
grid on
r1=uicontrol('parent',h0,...
'units','points',...
'tag','r1',...
'style','radio',...
'string','grid on',...
'position',[30 120 60 20],...
'backgroundcolor',[0.75 0.75 0.75],...
'value',1,...
'callback',[...
'grid on,',...
'set(r1,''value'',1);,',...
'set(r2,''value'',0)']);
r2=uicontrol('parent',h0,...
'units','points',...
'tag','r2',...
'style','radio',...
'string','grid on',...
'position',[30 95 60 20],...
'backgroundcolor',[0.75 0.75 0.75],...
'value',0,...
'callback',[...
'grid off,',...
'set(r2,''value'',1);,',...
'set(r1,''value'',0)']);
s1=uicontrol('parent',h0,...
'units','points',...
'tag','s1',...
'style','slider',...
'value',z,...
'position',[100 95 150 20],...
'backgroundcolor',[0.75 0.75 0.75],...
'max',1,...
'min',0,...
'callback',[...
'z=get(s1,''value'');,',...
'set(t1,''string'',[str1,sprintf(''%1.4g\'',z)]);,',...
'delete(hline),',...
'y=step(1,[1 2*z 1],t);,',...
'hline=plot(t,y);,',...
'if get(r1,''value'')==1,',...
'grid on,',...
'end,',...
'if get(r2,''value'')==1,',...
'grid off,',...
'end']);
t1=uicontrol('parent',h0,...
'units','points',...
'tag','t1',...
'style','text',...
'string',[str1,sprintf('%1.4g\',z)],...
'position',[100 120 150 20],...
'backgroundcolor',[0.75 0.75 0.75]);
b1=uicontrol('parent',h0,...
'units','points',...
'tag','b1',...
'style','pushbutton',...
'string','关闭',...
'position',[80 50 80 30],...
'backgroundcolor',[0.75 0.75 0.75],...
'fontsize',15,...
'callback','close');边栏推荐
- Stylegan paper notes + modify code to try 3D point cloud generation
- 面试京东 T5,被按在地上摩擦,鬼知道我经历了什么?
- Ant高级-path和fileset
- Overview of PCL modules (1.6)
- Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断
- Metaaploit-后渗透技知识
- 7/26 thinking +dp+ suffix array learning
- oracle rac 19c pdb实例当掉
- 文件上传漏洞绕过方法
- Food safety | is sugar free really sugar free? These truths need to be known
猜你喜欢
随机推荐
Xiandai 003
ACL2021最佳论文出炉,来自字节跳动
Ant advanced -path and fileset
System parameter constant table of system architecture:
Shell function, system function, basename [string / pathname] [suffix] can be understood as taking the file name in the path, dirname file absolute path, and user-defined function
Pyautogui realizes automatic office -rpa small case
01_ Movie recommendation (contentbased)_ Object portrait
hdu5289(Assignment)
Shell的read 读取控制台输入、read的使用
3D人脸重建:Joint 3D Face Reconstruction and Dense Alignment with position Map Regression Network
Ant高级-path和fileset
Is Damon partgroupdef a custom object?
Anaconda installation (very detailed)
Exercises --- quick arrangement, merging, floating point number dichotomy
pytorch的安装(非常详细)
7/26 thinking +dp+ suffix array learning
Anaconda安装(非常详细)
文件上传漏洞相关
并发之线程状态转换
Dcgan paper improvements + simplified code









