Matlab中的自动计算的属性的默认值

目录

什么是自动计算的属性

自动计算的属性的默认值

设置 X 坐标轴范围


什么是自动计算的属性

        当创建图形时,MATLAB® 会为这一特定图形适当设置某些属性值。这些属性,如控制坐标轴范围和图窗渲染器的属性,具有相关联的模式属性。

        这一模式属性确定MATLAB是否计算此属性值(模式为 auto)或属性是否使用指定值(模式为 manual)。

自动计算的属性的默认值

        定义自动计算的属性的默认值需要两步:

  • 定义属性默认值

  • 将模式属性的默认值定义为 manual

设置 X 坐标轴范围

        假设要定义 x 坐标轴范围默认值。由于坐标区 XLim 属性通常为自动计算,必须将相关联的模式属性 (XLimMode) 设置为 manual。

set(groot,'defaultAxesXLim',[0 8])
set(groot,'defaultAxesXLimMode','manual')
plot(1:20)

        这些坐标区使用默认 x 坐标轴范围 [0 8]:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The Language of Technical Computing MATLAB® is a high-level language and interactive environment for numerical computation, visualization, and programming. Using MATLAB, you can analyze data, develop algorithms, and create models and applications. The language, tools, and built-in math functions enable you to explore multiple approaches and reach a solution faster than with spreadsheets or traditional programming languages, such as C/C++ or Java™. You can use MATLAB for a range of applications, including signal processing and communications, image and video processing, control systems, test and measurement, computational finance, and computational biology. More than a million engineers and scientists in industry and academia use MATLAB, the language of technical computing. Key Features • High-level language for numerical computation, visualization, and application development • Interactive environment for iterative exploration, design, and problem solving • Mathematical functions for linear algebra, statistics, Fourier analysis, filtering, optimization, numerical integration, and solving ordinary differential equations • Built-in graphics for visualizing data and tools for creating custom plots • Development tools for improving code quality and maintainability and maximizing performance • Tools for building applications with custom graphical interfaces • Functions for integrating MATLAB based algorithms with external applications and languages such as C, Java, .NET, and Microsoft® Excel®
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值