matlab中绘制一个带有灯光,matlab 课件第五讲 Matlab绘图(106页)-原创力文档

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Instructor notes: Here we see our first example of fairly full featured 2D plot. In the slides that follow we will see how to go about arriving at a plot like this. The plot has a title that describes the dependent and independent variables. It has a label for the x-axis and for the y-axis. Each of these axis labels indicate what is being plotted with the corresponding units included in parentheses. The plot has major tick marks on each axis and the scale is such that an easily read step size occurs between each tick mark. Because there is more than one data set being plotted, there is a legend that indicates which curve corresponds to which data set. Note that the theoretical data is just a line, while the experimental data is a collection of data points that are connected by line segments. Data symbols should be used for measured data only, not for theoretical curves. Finally, there is a small text box that describes what is being plotted. * * * * * * * * * * * * * * * * * * * * * * * * * * * 点击more plots 显示所有当前matlab版本支持的数据可视化功能 在新的图形窗体中按照指定的形式绘图 例如:绘制工作空间数据: x=randn(30); 点击contour按钮 命令窗口显示命令: contour (x, 'DisplayName', 'x', 'ZDataSource', 'x'); figure(gcf) 在绘制图形的同时,在命令窗口显示相应的命令 6.7.1 交互式绘图工具 工作空间浏览器对数据可视化只能限于单一变量的可视化,对于变量对变量等复杂的绘图并不支持 利用交互式绘图工具 1、基本绘图 三种方式启动交互式绘图工具 1)命令窗口输入:plottools 2)点击start/MATLAB/plot tools 3)直接从图形窗体中打开show plot tools 按钮 交互式绘图工具分为四大部分 图形调色板: 选择曲线类型、窗口分割、数据选择与注释等 显示当前窗体中绘制曲线的对象列表 对图形注释文本、设置坐标轴信息 图形窗体:显示绘图结果 6.8 图形对象及其句柄 MATLAB的图形对象包括计算机屏幕、图形窗体、坐标轴、用户菜单、用户控件、曲线、曲面、文本、图像、光线、贴块和矩形等。 根对象 root 图形窗口对象 figure 右键菜单对象 uicontextmenu 菜单对象 uimenu 控件对象 uicontrol 坐标轴对象 axes 线对象 line 文字对象 text 表面图对象 surface 图像对象 image 光源对象 light 图形对象句柄 MATLAB在创建每一个图形对象时,都为该对象分配唯一的一个值,称其为图形对象句柄(Handle)。 句柄是图形对象的唯一标识符,不同对象的句柄不可能重复和混淆。 计算机屏幕作为根对象由系统自动建立,其句柄值为0,而图形窗体对象的句柄值为一正整数,并显示在该窗口的标题栏,其他图形对象的句柄为浮点数。 只要获取了图形对象的句柄,就可通过针对属性的操作来修改图形对象的外观。 M

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值