当前位置:网站首页>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');边栏推荐
- Why is redis so fast? Redis threading model and redis multithreading
- NFT system development - Tutorial
- Matlab- draw superimposed ladder diagram and line diagram
- Anaconda安装(非常详细)
- GBase 8a MPP集群扩容实战
- Shell中的文本处理工具、cut [选项参数] filename 说明:默认分隔符是制表符、awk [选项参数] ‘/pattern1/{action1}filename 、awk 的内置变量
- 找工作 4 个月, 面试 15 家,拿到 3 个 offer
- Configuration of pytorch deep learning environment based on cuda10.0
- Mysql database experiment training 5, data query YGGL database query (detailed)
- Food safety | the kitchen board environment is very important. Do you know these use details?
猜你喜欢

Snowflake vs. databricks who is better? The latest war report in 2022

PCL各模块概述(1.6)

数据库性能系列之子查询

LeetCode.1260. 二维网格迁移____原地暴力 / 降维+循环数组直接定位

Vs2019 Community Edition Download tutorial (detailed)

Shell process control (emphasis), if judgment, case statement, let usage, for ((initial value; loop control condition; variable change)) and for variable in value 1 value 2 value 3..., while loop

Configuration of pytorch deep learning environment based on cuda10.0

Shell operator, $((expression)) "or" $[expression], expr method, condition judgment, test condition, [condition], comparison between two integers, judgment according to file permission, judgment accor

Data visualization

Brush the title "sword finger offer" day04
随机推荐
并发之线程状态转换
Case of burr (bulge) notch (depression) detection of circular workpiece
Matlab- draw superimposed ladder diagram and line diagram
Snowflake vs. databricks who is better? The latest war report in 2022
邮件服务器
2016 outlook
Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断
达梦 PARTGROUPDEF是自定义的对象吗?
并发之park与unpark说明
Simple use of tflite
Switch port mirroring Configuration Guide
hdu5289(Assignment)
Redis 为什么这么快?Redis 的线程模型与 Redis 多线程
去 OPPO 面试,被问麻了
Shell的正则表达式入门、常规匹配、特殊字符:^、$、.、*、字符区间(中括号):[ ]、特殊字符:\、匹配手机号
Leetcode.814. binary tree pruning____ DFS
VS2019+CUDA11.1新建项目里没有CUDA选项
oracle rac 19c pdb实例当掉
使用 LSM-Tree 思想基于.NET 6.0 C# 写个 KV 数据库(案例版)
数据分析如何解决商业问题?这里有份超详细攻略