当前位置:网站首页>Matlab draws the system response under different damping
Matlab draws the system response under different damping
2022-07-27 10:19:00 【User 9925864】
be based on Matlab Of GUI Design the system response with different damping
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=' Current damping ratio =';
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',' close ',...
'position',[80 50 80 30],...
'backgroundcolor',[0.75 0.75 0.75],...
'fontsize',15,...
'callback','close');边栏推荐
- 如何创建一个带诊断工具的.NET镜像
- Understanding and code implementation of Se (sequence and exception) module
- 【英雄哥六月集训】第 24天: 线段树
- DCGAN论文改进之处+简化代码
- 使用 Kmeans聚类实现颜色的分割
- Food safety | is sugar free really sugar free? These truths need to be known
- There is no CUDA option in vs2019+cuda11.1 new project
- 线代004
- Metasploit-永恒之蓝攻击
- Configuration of pytorch deep learning environment based on cuda10.0
猜你喜欢

3D restoration paper: shape painting using 3D generative advantageous networks and recurrent revolutionary networks

线代004

Failure of CUDA installation nsight visual studio edition failed
[email protected], "/>Shell variables, system predefined variables $home, $pwd, $shell, $user, custom variables, special variables $n, $, $*, [email protected],

Leetcode.814. binary tree pruning____ DFS

3D face reconstruction and dense alignment with position map progression network
![Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number](/img/31/ed0d8c1a5327059f2de7493bec1c6c.png)
Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number

3D修复论文:Shape Inpainting using 3D Generative Adversarial Network and Recurrent Convolutional Networks

Food safety | is sugar free really sugar free? These truths need to be known

Oracle调整数据文件大小杂谈
随机推荐
Xiandai 003
NFS 服务器的搭建
Anaconda安装(非常详细)
Oracle view hard parsing
01_ Movie recommendation (contentbased)_ Object portrait
Cannot start after installing MySQL 5.7.27 in CentOS 7? (Language bash)
QT learning (II) -- a brief introduction to QT Creator
Live countdown 3 days sofachannel 29 P2P based file and image acceleration system Dragonfly
ACL2021最佳论文出炉,来自字节跳动
Shell综合应用案例,归档文件、发送消息
Matlab底层源代码实现图像的中值滤波(用于消除图像上一些杂点)
Shell的正则表达式入门、常规匹配、特殊字符:^、$、.、*、字符区间(中括号):[ ]、特殊字符:\、匹配手机号
Uninstall cuda11.1
邮件服务器
QT learning (II) -.Pro file explanation
线代004
pytorch中对BatchNorm2d()函数的理解
PCL各模块概述(1.6)
Shell流程控制(重点)、if 判断、case 语句、let用法、for 循环中有for (( 初始值;循环控制条件;变量变化 ))和for 变量 in 值 1 值 2 值 3… 、while 循环
Food safety | the more you eat junk food, the more you want to eat it? Please keep this common food calorimeter