当前位置:网站首页>[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 .
边栏推荐
- < job search> process and signal
- MySQL connection query and subquery
- 【无线图传】基于FPGA的简易无线图像传输系统verilog开发,matlab辅助验证
- 高性能 低功耗Cortex-A53核心板 | i.MX8M Mini
- 数据库文件逻辑结构形式指的是什么
- Retrofit's callback hell is really vulnerable in kotlin synergy mode
- PY3, PIP appears when installing the library, warning: ignoring invalid distribution -ip
- FFMpeg AVFrame 的概念.
- 近段时间天气暴热,所以采集北上广深去年天气数据,制作可视化图看下
- Detailed explanation of ThreadLocal
猜你喜欢

蓝桥杯单片机第四届省赛

Kubernetes cluster storageclass persistent storage resource core concept and use

The 11th Blue Bridge Cup single chip microcomputer provincial competition

JIT deep analysis

焱融看 | 混合雲時代下,如何制定多雲策略

In the era of programmers' introspection, five-year-old programmers are afraid to go out for interviews

ThreadLocal详解

高性能 低功耗Cortex-A53核心板 | i.MX8M Mini

蓝桥杯单片机省赛第六届

Comment élaborer une stratégie nuageuse à l'ère des nuages mixtes
随机推荐
Influence of air resistance on the trajectory of table tennis
Kotlin basic learning 16
Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
The fourth provincial competition of Bluebridge cup single chip microcomputer
Welcome the winter vacation multi school league game 2 partial solution (B, C, D, F, G, H)
Set vscode. When double clicking, the selected string includes the $symbol - convenient for PHP operation
Lost a few hairs, and finally learned - graph traversal -dfs and BFS
跳出舒适区,5年点工转型自动化测试工程师,我只用了3个月时间
数据库文件逻辑结构形式指的是什么
ImageAI安装
Network connection mode of QT
Qt的网络连接方式
[HCIA continuous update] overview of dynamic routing protocol
潘多拉 IOT 开发板学习(HAL 库)—— 实验2 蜂鸣器实验(学习笔记)
Visual slam Lecture 3 -- Lie groups and Lie Algebras
蓝桥杯单片机省赛第十一届
JS generate random numbers
【小技巧】使用matlab GUI以对话框模式读取文件
MD5 of Oracle
Failed to upgrade schema, error: “file does not exist