2 Matlab编程简介-2.pptVIP

  • 3
  • 0
  • 约2.89万字
  • 约 10页
  • 2018-05-19 发布于四川
  • 举报
Instructor notes: Here is a quick example given two sets of data. First the x and y vectors are filled with the appropriate data and then the plot () command is executed. These actions could be performed in script or function files, as well as the command window. Again, note that there are the same number of elements in the x vector as there are in the y vector. Matlab complains loudly when the two don’t match. As soon as the plot () command executes, and additional window will be opened to display the data. Instructor notes: Here is a quick example given two sets of data. First the x and y vectors are filled with the appropriate data and then the plot () command is executed. These actions could be performed in script or function files, as well as the command window. Again, note that there are the same number of elements in the x vector as there are in the y vector. Matlab complains loudly when the two don’t match. As soon as the plot () command executes, and additional window will be opened to display the data. Instructor notes: Here is a quick example given two sets of data. First the x and y vectors are filled with the appropriate data and then the plot () command is executed. These actions could be performed in script or function files, as well as the command window. Again, note that there are the same number of elements in the x vector as there are in the y vector. Matlab complains loudly when the two don’t match. As soon as the plot () command executes, and additional window will be opened to display the data. 成品效果图: 二、GUIDE工具栏功能介绍 对齐工具 菜单编辑器 Tab键顺序编辑器 工具栏编辑器 程序编辑器 属性查看器 对象浏览器 三、GUI配套的M文件 1. M文件基本框架 2. 对象回调函数 3. 数据传递 四、GUI对象(控件)详解 触控按钮(Push Button) 单选按钮(Radio Button) 文本编辑框(Edit Text) 下拉菜单(Pop-up Menu) 切换按钮(Toggle Button) 坐标系(Axes) 按钮组(Button Group) 滑动条(Slider) 复选框(Check Box) 静态文本(Static Text) 列表框(Listbox) 表格(Table) 面板(Panel) ActiveX控件(ActiveX Control) 通过编程建立GUI 一、编辑GUIDE界面常用

文档评论(0)

1亿VIP精品文档

相关文档