1、grid、box函数:设置网格线、边框

2、用法说明

(1)grid on/off 函数对当前坐标图加上或撤销网格线

(2)box on/off 函数对当前坐标图加上或撤销边框

(3)grid 函数在设置网格线和撤销网格线两种状态间进行转换

(4)box 函数在加上边框和撤销边框两种状态进行装换

3、用法举例

>> x = 1:200;

>> y = x.^2

y =

Columns 1 through 8

1 4 9 16 25 36 49 64

Columns 9 through 16

81 100 121 144 169 196 225 256

Columns 17 through 24

289 324 361 400 441 484 529 576

Columns 25 through 32

625 676 729 784 841 900 961 1024

Columns 33 through 40

1089 1156 1225 1296 1369 1444 1521 1600

Columns 41 through 48

1681 1764 1849 1936 2025 2116 2209 2304

Columns 49 through 56

2401 2500 2601 2704 2809 2916 3025 3136

Columns 57 through 64

3249 3364 3481 3600 3721 3844 3969 4096

Columns 65 through 72

4225 4356 4489 4624 4761 4900 5041 5184

Columns 73 through 80

5329 5476 5625 5776 5929 6084 6241 6400

Columns 81 through 88

6561 6724 6889 7056 7225 7396 7569 7744

Columns 89 through 96

7921 8100 8281 8464 8649 8836 9025 9216

Columns 97 through 104

9409 9604 9801 10000 10201 10404 10609 10816

Columns 105 through 112

11025 11236 11449 11664 11881 12100 12321 12544

Columns 113 through 120

12769 12996 13225 13456 13689 13924 14161 14400

Columns 121 through 128

14641 14884 15129 15376 15625 15876 16129 16384

Columns 129 through 136

16641 16900 17161 17424 17689 17956 18225 18496

Columns 137 through 144

18769 19044 19321 19600 19881 20164 20449 20736

Columns 145 through 152

21025 21316 21609 21904 22201 22500 22801 23104

Columns 153 through 160

23409 23716 24025 24336 24649 24964 25281 25600

Columns 161 through 168

25921 26244 26569 26896 27225 27556 27889 28224

Columns 169 through 176

28561 28900 29241 29584 29929 30276 30625 30976

Columns 177 through 184

31329 31684 32041 32400 32761 33124 33489 33856

Columns 185 through 192

34225 34596 34969 35344 35721 36100 36481 36864

Columns 193 through 200

37249 37636 38025 38416 38809 39204 39601 40000

>> plot(x,y)

(1)grid on

>> grid on

(2)grid off

>> grid off

(3)box on

>> box on

(4)box off

>> box off

matlab的grid on,Matlab基本函数-grid、box函数 | 学步园相关推荐

  1. format函数使用matlab,Matlab基本函数-format函数 | 学步园

    1.format函数:控制输出.显示格式 2.用法说明 format 缺省格式,同short.Matlab中常用的显示格式有: (1)format short表示5位近似定点数 (2)format l ...

  2. imag在matlab,Matlab基本函数-imag函数 | 学步园

    1.imag函数:求复数的虚部部分 2.用法说明 Y=imag(X) 函数计算复数X的虚数部分Y.输出结果Y与输入X的维数相同,返回值为复数数组X中的每个复数的虚部 3.举例说明 >> x ...

  3. matlab 保存变量到txt,Matlab中.mat数据某变量保存为txt | 学步园

    因为要在matlab和VC之间搞来搞去,因此数据要转来转去. matlab下处理完之后,把结果保存为.mat数据,但大家都知道VC无法直接处理滴,所以要转为txt文件格式, 看下.mat都保存了神马东 ...

  4. matlab画置信区间图,matlab绘制带置信区间的双y轴图形 | 学步园

    matlab的双y轴网上有很多方法,但是带置信区间的双y轴就很少了,并且由于网上给的例子一般都是使用红蓝两色,对于只想使用黑色或者灰色的俺们来说太鲜艳啦~ 上图为使用matlab绘制的双y轴带置信区间 ...

  5. matlab the installer cannot read,MATLAB安装 The installer cannot read the mwinstall.dll… | 学步园...

    前提:安装前的文件 的 目录 不需含有 中文 安装MATLAB7时弹出以下警告对话框,显示" The installer cannot read the mwinstall.dll file ...

  6. matlab矩阵除以一个数字,matlab矩阵中每一行数除以一个数 | 学步园

    例如:用a中每一行数除以x中相对应的每一个数 x=[5 10 6 8 16 6 8 8 22 11]; a=[4 4 4 5 4 4 4 4 3 4 6 8 6 2 6 8 8 6 8 6 4 4 4 ...

  7. matlab knn,MATLAB K近邻算法 — knnsearch() 函数 | 学步园

    K近邻 IDX = knnsearch(X,Y) finds the nearest neighbor in X for each point in Y. X is an MX-by-N matrix ...

  8. matlab 拖动曲线,Matlab屏幕交互取点并作三次样条曲线matlab GUI:屏幕取点+三次样条曲线+屏幕拖动 | 学步园...

    函数实现屏幕拖动: function figure1_WindowButtonDownFcn(hObject, eventdata, handles) set(gcf,'Pointer','fleur ...

  9. 用matlab对图像进行边缘填充,matlab中的图像边界填充函数 | 学步园

    padarray 功能:填充图像或填充数组. 用法:B = padarray(A,padsize,padval,direction) A为输入图像,B为填充后的图像, padsize给出了给出了填充的 ...

  10. matlab如何将函数做成幅度谱,好用的画包络谱和幅值谱matlab函数 | 学步园

    画包络函数: function hua_baol (y,fs,style,varargin) %画包络函数是hua_baoluo的代码简化版 %输入参数要么是3个,要么是5个 %当三个的时候 y_hh ...

最新文章

  1. tomcat启动卡死在: Initializing Spring root WebApplicationContext的解决办法
  2. 移动开发—HTML5 or Native?
  3. Jave之Scanner和不合法输入处理
  4. 华为中东北非地区技术服务培训中心在开罗成立
  5. 软件工程-pair work
  6. 转行做产品经理需要学什么?
  7. 【Elasticsearch】追踪同步分片副本 in-sync allocation IDs
  8. omnigraffle 画曲线_「技法」三步学会用绘图利器 OmniGraffle 绘制流程图
  9. PTA--Pop Sequence判定
  10. c语言课程性质,c语言课程的特性
  11. A*求解带时间窗的路径规划问题
  12. 天价高端茶礼是真文化还是智商税?
  13. 公司项目重构-Web安全-文件上传漏洞
  14. MATLAB数学建模必备算法--层次分析法AHP
  15. RBAC角色访问控制
  16. 7种延迟加载javascript方法(转)
  17. 【H.264/AVC视频编解码技术详解】八、 熵编码算法(2):H.264中的熵编码基本方法、指数哥伦布编码
  18. 网络基础学习:布线、计算机数制
  19. boss直聘__zp_stoken__逆向分析2021.10版
  20. 【郝斌老师数据结构学习笔记 day 3】

热门文章

  1. SCI论文配色-matplotlib分类柱状图绘制
  2. c语言编程矩阵范数,矩阵2范数计算 这个二阶矩阵的二范数怎么
  3. shell命令实现txt文件转换为csv文件
  4. 解决visual studio安装Dev后不显示控件或控件灰色不可用
  5. uni-app实现APP中打开第三方app
  6. html img的点击事件,js给img添加点击事件无效
  7. tp6中kafka使用
  8. webpack中swipe的安装和使用
  9. 0723电话面试整理
  10. HTML数据可视化散点图,数据可视化:用散点图进行数据分析