1 / 6

MATLAB 及其应用 第七讲

MATLAB 及其应用 第七讲. 图形界面设计. 主讲人:鲍文 email://baowen@hcms.hit.edu.cn http://www.turbo.hit.edu.cn. 一、图形界面的控制. 1、控制图形窗口 set, get, gcf 窗口对应句柄 1)句柄的获取 g=figure(); 创建窗口并返回句柄 gcf: 当前窗口的句柄 gca gcbo gco 2)获得和修改窗口的属性 使用 get(g,’ 属性名’)返回窗口属性值 使用 set(g,’ 属性名‘,属性值)设置窗口属性

kayo
Download Presentation

MATLAB 及其应用 第七讲

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MATLAB及其应用 第七讲 图形界面设计 主讲人:鲍文 email://baowen@hcms.hit.edu.cn http://www.turbo.hit.edu.cn

  2. 一、图形界面的控制 1、控制图形窗口 set, get, gcf 窗口对应句柄 1)句柄的获取 g=figure(); 创建窗口并返回句柄 gcf: 当前窗口的句柄 gca gcbo gco 2)获得和修改窗口的属性 使用get(g,’属性名’)返回窗口属性值 使用set(g,’属性名‘,属性值)设置窗口属性 例如:属性color

  3. 二、图形窗口的属性定义 不分大小写,可简写 a、color:界面颜色,使用三原色0~1之间 b、Name:标题栏名字,字符串 c、MenuBar:菜单有无。‘none’、’figure’ d、NumberTitle: 图形标号。‘on’、’off’ e、Resize:’on’、’off’ f、Units:单位,‘inches’、’centimeters’、’normlized’ g、Pointer:鼠标形状 h、visible:可否看到 I、userdata :自定义数据 j、打印设置

  4. 三、界面的修改 命令行: propedit 使用: graphics property editor 1) 对象浏览器 2) 属性的修改

  5. 四、GUI界面制作 方法: 命令行:guide 菜单:GUI Control Panel 注意: 1)元件 2)元件属性 3)callback 程序 工具: 1)属性编辑器 2)callback编辑器 3)对齐工具 4)菜单编辑器

  6. 考试 按照自己专业的特色,作一个大作业,实现 自己专业的一种有特色的计算。 要求: 1)必须含有绘图部分 2)可以作数据处理、仿真、界面制作、符号运算等 在五月中旬之前交到节能楼313

More Related