如何在matlab中构建一个简单的图形用户界面(build a simple graphical user interface in matlab)

Matlab是一个强大的数学工具,用于矩阵计算和几乎任何其他需要的数学函数。Matlab还能够使用其编程语言形成类似windows的应用程序。...

台阶

  1. 1打开Matlab程序,等待加载完成
  2. Image titled Build a Simple Graphical User Interface in MATLAB Step 1
  3. 2点击启动板上的“MATLAB”展开列表,然后双击“指南(GUI生成器)”。如果看不到发射台,请单击“视图”,然后单击“发射台”。GUI生成器将出现
  4. Image titled Build a Simple Graphical User Interface in MATLAB Step 2
  5. 3单击窗口左侧的“确定”按钮。这将允许您拖放一个按钮。
  6. Image titled Build a Simple Graphical User Interface in MATLAB Step 3
  7. 4将鼠标移动到窗口中心灰色区域的某个位置。
  8. Image titled Build a Simple Graphical User Interface in MATLAB Step 4
  9. 5单击一次,按住按钮并拖动鼠标,直到形成的正方形达到您想要的大小
  10. Image titled Build a Simple Graphical User Interface in MATLAB Step 5
  11. 6松开鼠标按钮,你会看到你的按钮出现
  12. Image titled Build a Simple Graphical User Interface in MATLAB Step 6
  13. 7双击刚刚创建的按钮。一个物业经理会出现
  14. Image titled Build a Simple Graphical User Interface in MATLAB Step 7
  15. 8找到“字符串字段”并单击其右侧的区域,然后键入“打招呼”。同时将标签改为“按钮”
  16. Image titled Build a Simple Graphical User Interface in MATLAB Step 8
  17. 9找到左侧标有“txt”的按钮,然后再次执行相同的步骤8
  18. Image titled Build a Simple Graphical User Interface in MATLAB Step 9
  19. 10现在单击文件,然后单击保存以保存您的工作。这也会弹出程序的代码。
  20. Image titled Build a Simple Graphical User Interface in MATLAB Step 10
  21. 11在代码编辑器中找到表示函数varargout=pushbutton1_Callback(h、eventdata、handles、varargin)的代码行。这是回调函数。只要用户按下按钮,下面的任何代码都将被执行。在这里,我们将在用户单击按钮时更改文本框中的文本
  22. Image titled Build a Simple Graphical User Interface in MATLAB Step 11
  23. 12写入设置。
  24. Image titled Build a Simple Graphical User Interface in MATLAB Step 12
  • 发表于 2022-05-17 19:35
  • 阅读 ( 67 )
  • 分类:IT

你可能感兴趣的文章

包裹(package)和java接口(interface in java)的区别

...如URL、Socket、ServerSocket。这个java.awt文件包包含构建图形用户界面所需的所有类。这些是很少的javaapi包。 当程序员想在程序中使用某个类时,他应该导入那个包。如果程序员想在java.io文件包,他应该写进口声明如下。 进口java.u...

  • 发布于 2020-10-18 11:01
  • 阅读 ( 590 )

matlab语言(matlab)和c语言(c language)的区别

...之外,Matlab还提供了一些工具来构建令人印象深刻的图形用户界面。也可以将Matlab算法与外部应用程序(如C、Java、.NET)集成。另一个有用的特性是Simulink。它允许对系统进行建模、设计和仿真。 该软件主要在工程界和科学界流...

  • 发布于 2020-10-18 11:32
  • 阅读 ( 246 )

一个linux操作系统究竟是如何“基于”另一个linux操作系统的?

...hich works with the hardware and exports a certain Application Programming Interface (API), and binary conventi*** on how to precisely use it (Application Binary Interface, ABI) available to the “user-space” applicati***. Debian, RedHat and others are operating systems — complete software en...

  • 发布于 2021-04-11 15:10
  • 阅读 ( 209 )

30个伟大的photoshop技巧和技巧,帮助您的计算机图形技能

...y are only games played for fun. However, they can teach you less*** about graphics and the concepts behind them. The following article will help you learn from Mario about pixels, polyg***, computers, and math. 超级马里奥能教我们什么图形技术? 用这些搞笑的极客情人节来...

  • 发布于 2021-04-12 17:13
  • 阅读 ( 312 )

如何快速向windows服务器添加多个ip地址

...为了添加IP地址,我们对以下参数字符串感兴趣: netsh interface ipv4 add address 注意:对于WindowsServer2003/XP和更早版本,netsh命令中的“ipv4”应替换为“ip”。 如果您查看帮助信息,您可以看到接受参数的完整列表,但您最感兴趣...

  • 发布于 2021-04-13 02:13
  • 阅读 ( 88 )

最差的6个windows版本

...re built from the ground-up with hardware optimized to use a mouse-and-GUI interface, IBM PCs had to rely on kludgy software tricks to even begin to approach doing the same thing. As a result, Windows 1.0 pushed the limits of a typical 1985 PC’s capabilities at the time, making it a memory hog tha...

  • 发布于 2021-04-14 17:23
  • 阅读 ( 209 )

python(python)和matlab软件(matlab)的区别

在过去的十年里,科学计算环境如Mathematica、Maple和Matlab的流行程度有了很大的提高,因为科学家和工程师在这样的环境中感觉更有效率。一个明显的原因是这些环境中强大的工具箱和简单的命令语言语法。另一个因素是可视化...

  • 发布于 2021-06-25 22:26
  • 阅读 ( 382 )

高清多媒体接口(High Definition Multimedia Interface)(hdmi)和vga格式(vga)的区别

VGA和HDMI是用于连接设备(如笔记本电脑和DVD播放器)和显示器(如电视、电脑显示器或投影仪)的电缆的接口标准。VGA是一种只传输视频信号的较旧标准。HDMI是最新电子设备(如蓝光播放器或LED电视...

  • 发布于 2021-07-07 01:40
  • 阅读 ( 302 )

matlab软件(matlab)和JAVA(java)的区别

关键区别:MATLAB是一种计算机语言,用于支持上世纪70年代开发的交互式数值数学。另一方面,Java是sunmicrosystems于1995年首次发布的一种编程语言和计算平台。 MATLAB和Java都是计算语言,通常在许多公司结构中都可以找到。这是...

  • 发布于 2021-07-13 13:05
  • 阅读 ( 154 )

本周最受欢迎的帖子

...e blue box with extended antennas, fan-cooled overclocking, and the DD-WRT interface.First Look at Ubuntu Light and Unity: The Super Fast, Mac-like Netbook OS Canonical's latest endeavor, somewhat confusingly called Ubuntu Light, is an instantly-on-and-connected netbook and desktop solution. It's ne...

  • 发布于 2021-07-27 05:16
  • 阅读 ( 194 )
deadlife2
deadlife2

0 篇文章

相关推荐