matlab实验主要指令

上传人:206****923 文档编号:37523241 上传时间:2018-04-17 格式:DOC 页数:6 大小:44.50KB
返回 下载 相关 举报
matlab实验主要指令_第1页
第1页 / 共6页
matlab实验主要指令_第2页
第2页 / 共6页
matlab实验主要指令_第3页
第3页 / 共6页
matlab实验主要指令_第4页
第4页 / 共6页
matlab实验主要指令_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《matlab实验主要指令》由会员分享,可在线阅读,更多相关《matlab实验主要指令(6页珍藏版)》请在金锄头文库上搜索。

1、1.1.有关命令行环境的一些操作有关命令行环境的一些操作: :(1)(1) clcclc 擦去一页命令窗口擦去一页命令窗口, ,光标回屏幕左上角光标回屏幕左上角 (2)(2) clearclear 从工作空间清除所有变量从工作空间清除所有变量(3)(3) clfclf 清除图形窗口内容清除图形窗口内容 (4)(4) whowho 列出当前工作空间中的变量列出当前工作空间中的变量 (5)(5) whoswhos 列出当前工作空间中的变量及信息列出当前工作空间中的变量及信息 或用工具栏上的或用工具栏上的 WorkspaceWorkspace 浏览器浏览器 (6)(6) deletedelete 从

2、磁盘删除指定文件从磁盘删除指定文件 (7)(7) whechwhech 查找指定文件的路径查找指定文件的路径 ( ( 9 9 ) ) clearclear allall 从工作空间清除所有变量和函数从工作空间清除所有变量和函数 (10)(10) helphelp 查询所列命令的帮助信息查询所列命令的帮助信息 (11)(11) savesave namename 保存工作空间变量到文件保存工作空间变量到文件name.matname.mat (12)(12) savesave namename x x y y 保存工作空间变量保存工作空间变量 x x y y 到文件到文件name.matname.

3、mat (13)(13) loadload namename 下载下载namename文件中的所有变量到工作空间文件中的所有变量到工作空间 (14)(14) loadload namename x x y y 下载下载namename文件中的变量文件中的变量 x x y y 到工作空间到工作空间 (15)(15) diarydiary name1.mname1.m 保存工作空间一段文本到文件保存工作空间一段文本到文件 name1.mname1.m diarydiary offoff (16)(16) typetype name.mname.m 在工作空间查看在工作空间查看 name.mname

4、.m 文件内容文件内容 (17)(17) whatwhat 列出当前目录下的列出当前目录下的 m m 文件和文件和 matmat 文件文件 Ctrl+pCtrl+p 调用上一次的命令调用上一次的命令 Ctrl+nCtrl+n 调用下一行的命令调用下一行的命令 Ctrl+bCtrl+b 退后一格退后一格 Ctrl+fCtrl+f 前移一格前移一格CtrlCtrl + + Ctrl+rCtrl+r 向右移一个单词向右移一个单词CtrlCtrl + + Ctrl+lCtrl+l 向左移一个单词向左移一个单词HomeHome Ctrl+aCtrl+a 光标移到行首光标移到行首EndEnd Ctrl+e

5、Ctrl+e 光标移到行尾光标移到行尾EscEsc Ctrl+uCtrl+u 清除一行清除一行DelDel Ctrl+dCtrl+d清除光标后字符清除光标后字符BackspaceBackspace Ctrl+hCtrl+h 清除光标前字符清除光标前字符 Ctrl+kCtrl+k 清除光标至行尾字清除光标至行尾字Ctrl+cCtrl+c 中断程序运行中断程序运行一常用的窗口命令一常用的窗口命令 helphelp 启动联机帮助文件显示启动联机帮助文件显示 whatwhat 列出当前目录下的有关文件列出当前目录下的有关文件 typetype 列出列出 M M 文件文件 lookforlookfor

6、对对 helphelp 信息中的关键词查找信息中的关键词查找 whichwhich 找出函数与文件所在的目录名找出函数与文件所在的目录名 demodemo 运行运行 MATLABMATLAB 的演示程序的演示程序 pathpath 设置或查询设置或查询 MATLABMATLAB 的路径的路径MatlabMatlab 的的 fspecialfspecial 函数用法函数用法fspecial 函数用于建立预定义的滤波算子,其语法格式为:h = fspecial(type) h = fspecial(type,para) 其中 type 指定算子的类型,para 指定相应的参数; type 的类型有

7、: 1、averageaveraging filter 为均值滤波,参数为 hsize 代表模板尺寸,默认值为【3,3】 。H = FSPECIAL(average,HSIZE) returns an averaging filter H of sizeHSIZE. HSIZE can be a vector specifying the number of rows and columns inH or a scalar, in which case H is a square matrix. The default HSIZE is 3 3. 2、diskcircular averagin

8、g filter 为圆形区域均值滤波,参数为 radius 代表区域半径,默认值为5.H = FSPECIAL(disk,RADIUS) returns a circular averaging filter(pillbox) within the square matrix of side 2*RADIUS+1.The default RADIUS is 5. 3、gaussianGaussian lowpass filter为高斯低通滤波,有两个参数,hsize 表示模板尺寸,默认值为【3 3】 ,sigma 为滤波器的 标准值,单位为像素,默认值为0.5.H = FSPECIAL(gau

9、ssian,HSIZE,SIGMA) returns a rotationallysymmetric Gaussian lowpass filter of size HSIZE with standarddeviation SIGMA (positive). HSIZE can be a vector specifying thenumber of rows and columns in H or a scalar, in which case H is asquare matrix.The default HSIZE is 3 3, the default SIGMA is 0.5. 4、l

10、aplacian filter approximating the 2-D Laplacian operator 为拉普拉斯算子,参数 alpha 用于控制算子形状,取值范围为【0,1】 ,默认值为0.2.H = FSPECIAL(laplacian,ALPHA) returns a 3-by-3 filterapproximating the shape of the two-dimensional Laplacianoperator. The parameter ALPHA controls the shape of theLaplacian and must be in the rang

11、e 0.0 to 1.0.The default ALPHA is 0.2. 5、logLaplacian of Gaussian filter 为拉普拉斯高斯算子,有两个参数,hsize 表示模板尺寸,默认值为【3 3】 ,sigma 为滤波 器的标准差,单位为像素,默认值为0.5.H = FSPECIAL(log,HSIZE,SIGMA) returns a rotationally symmetricLaplacian of Gaussian filter of size HSIZE with standard deviationSIGMA (positive). HSIZE can b

12、e a vector specifying the number of rowsand columns in H or a scalar, in which case H is a square matrix.The default HSIZE is 5 5, the default SIGMA is 0.5. 6、motionmotion filter 为运动模糊算子,有两个参数,表示摄像物体逆时针方向以 theta 角度运动了 len 个像素, len 的默认值为9,theta 的默认值为0;H = FSPECIAL(motion,LEN,THETA) returns a filter t

13、o approximate, onceconvolved with an image, the linear motion of a camera by LEN pixels,with an angle of THETA degrees in a counter-clockwise direction. Thefilter becomes a vector for horizontal and vertical motions. Thedefault LEN is 9, the default THETA is 0, which corresponds to ahorizontal motio

14、n of 9 pixels. 7、prewittPrewitt horizontal edge-emphasizing filter 用于边缘增强,大小为【3 3】 ,无参数H = FSPECIAL(prewitt) returns 3-by-3 filter that emphasizeshorizontal edges by approximating a vertical gradient. If you need toemphasize vertical edges, transpose the filter H: H.1 1 1;0 0 0;-1 -1 -1. 8、sobelSobe

15、l horizontal edge-emphasizing filter 用于边缘提取,无参数H = FSPECIAL(sobel) returns 3-by-3 filter that emphasizeshorizontal edges utilizing the smoothing effect by approximating avertical gradient. If you need to emphasize vertical edges, transposethe filter H: H.1 2 1;0 0 0;-1 -2 -1. 9、unsharpunsharp contra

16、st enhancement filter 为对比度增强滤波器。参数 alpha 用于控制滤波器的形状,范围为【0,1】 ,默认值为0.2.H = FSPECIAL(unsharp,ALPHA) returns a 3-by-3 unsharp contrastenhancement filter. FSPECIAL creates the unsharp filter from thenegative of the Laplacian filter with parameter ALPHA. ALPHA controlsthe shape of the Laplacian and must be in the ran

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号