当前位置:网站首页>[tips] use Matlab GUI to read files in dialog mode
[tips] use Matlab GUI to read files in dialog mode
2022-07-02 03:42:00 【FPGA and MATLAB】
stay MATLAB Interface design process , It is often necessary to call the dialog box for reading files by pressing the key , It can be realized through the following code :
[filename,pathname]=uigetfile({'*.jpg',' Sample file (*.jpg)';'*,*',' All the files (*.*)'},' Please select a sample file ');
if isequal(filename,0)||isequal(pathname,0)
return;
end
FileName_AVI = [pathname,filename];here , function GUI Interface , The following dialog box can pop up :

You can see , Prompt in dialog box jpg File format , If it is changed to other , You can also make similar files , Such as txt file , As shown below :
[filename,pathname]=uigetfile({'*.txt',' Sample file (*.txt)';'*,*',' All the files (*.*)'},' Please select a sample file ');
if isequal(filename,0)||isequal(pathname,0)
return;
end
FileName_AVI = [pathname,filename];here , function GUI Interface , The following dialog box can pop up :

After running , The path of the file will be saved to the variable FileName_AVI in , Then read it .
边栏推荐
- Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
- Kubernetes cluster storageclass persistent storage resource core concept and use
- u本位合约爆仓清算解决方案建议
- 焱融看 | 混合云时代下,如何制定多云策略
- Oracle的md5
- 蓝桥杯单片机省赛第十二届第二场
- The second game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
- Network connection mode of QT
- 【DesignMode】原型模式(prototype pattern)
- regular expression
猜你喜欢
![[mv-3d] - multi view 3D target detection network](/img/aa/741b36ead2dfaa5a165401b8d657b7.jpg)
[mv-3d] - multi view 3D target detection network

汇率的查询接口

Get started with Aurora 8b/10b IP core in one day (5) -- learn from the official routine of framing interface

Retrofit's callback hell is really vulnerable in kotlin synergy mode

Set vscode. When double clicking, the selected string includes the $symbol - convenient for PHP operation

近段时间天气暴热,所以采集北上广深去年天气数据,制作可视化图看下

Account management of MySQL

Pointer array & array pointer

SQL Yiwen get window function

How to do medium and long-term stocks, and what are the medium and long-term stock trading skills?
随机推荐
aaaaaaaaaaaaa
Retrofit's callback hell is really vulnerable in kotlin synergy mode
[punch in] flip the string (simple)
【DesignMode】建造者模式(Builder model)
Basic syntax of unity script (8) - collaborative program and destruction method
高性能 低功耗Cortex-A53核心板 | i.MX8M Mini
蓝桥杯单片机省赛第九届
NLog use
Lost a few hairs, and finally learned - graph traversal -dfs and BFS
跳出舒适区,5年点工转型自动化测试工程师,我只用了3个月时间
Vite: scaffold assembly
SQL Yiwen get window function
< job search> process and signal
ThreadLocal详解
In the era of programmers' introspection, five-year-old programmers are afraid to go out for interviews
In depth interpretation of pytest official documents (26) customized pytest assertion error information
Oracle common SQL
Basic syntax of unity script (7) - member variables and instantiation
Set vscode. When double clicking, the selected string includes the $symbol - convenient for PHP operation
The 9th Blue Bridge Cup single chip microcomputer provincial competition