当前位置:网站首页>Matlab --- progress bar animation demonstration
Matlab --- progress bar animation demonstration
2022-04-21 10:57:00 【Xiaoyu 2022】

clear;
hWaitbar = waitbar(0, ' Please wait ...', 'Name', ' Progress bar ', 'CreateCancelBtn',...
'delete(hWaitbar);clear hWaitbar'); % Creation progress is 0 The progress bar
btnCancel = findall(hWaitbar, 'style', 'pushbutton'); % lookup 【 Cancel 】 Button
set(btnCancel, 'string', ' Cancel ', 'fontsize', 10); % Set up 【 Cancel 】 Button on the String by “ Cancel ”
try % Intelligent update progress
for i = 1 : 100
waitbar(i/100, hWaitbar, [' Schedule complete ' num2str(i) '%']);
pause(0.1); % Every time 0.1 Seconds to complete 1% Progress
end
delete(hWaitbar); % Progress has reached 100% after , Close progress bar
clear hWaitbar; % Clear variables hWaitbar
end
版权声明
本文为[Xiaoyu 2022]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211056175259.html
边栏推荐
- MATLAB GUI---复杂绘图模式(动画演示)
- 后缀数组
- C语言中使用scanf函数时应注意的问题
- Map与JsonObject区别
- AC自动机专题训练
- make the inifile support unicode in delphi
- ConvBERT: Improving BERT with Span-based Dynamic Convolution论文的阅读笔记
- Go uses channel for synchronization (buffer channel)
- Recursive function C language question type
- 北京师范大学第十六届程序设计竞赛决赛-重现赛&补题
猜你喜欢
![[非线性控制理论]1_Lyapunov直接方法](/img/ad/68bceb288d40ae98b60dbb83e0b91d.png)
[非线性控制理论]1_Lyapunov直接方法
Go环境的搭建

Postman setting environment variables is simple and practical

电机控制-速度环设计

Motor control - speed loop design

00000000000000000000000

设计一个高质量的 API 接口

AcWing 1749. 阻挡广告牌 II(分类讨论+枚举)

Leetcode 110 Balanced binary tree (2022.04.20)

Openshift 4 - improve client access API server security
随机推荐
MATLAB---进度条动画演示
小程序生命周期
Design a high-quality API interface
Android learning ① various reasons why Android cannot connect to MySQL database and Solutions
Applet lifecycle
Tami dog knowledge | basic principles of acquisition of listed companies
2022 information and future preparation topic 2 new online judge 1113: digit problem
【生活中的逻辑谬误】对人不对事和两难陷阱
GO 使用channel进行同步 (缓冲channel)
AcWing 1749. Block billboard II (classified discussion + enumeration)
Teach you by hand: rolling bearing fault diagnosis based on deep learning
后缀数组
AcWing 1749. 阻挡广告牌 II(分类讨论+枚举)
Still AC automata
println输入和toString方法的重写
万元礼品奖池 玩转「Lighthouse」有奖征文来袭
润和大禹学习方案
TypeError: The view function did not return a valid response. The function either returned None 的解决
GDI+中TGPImage从流中加载图像
MySQL深入学习(三十):数据库的设计规范