MATLAB 仿真实验报告 课题名称: MATLAB 仿真——图像处理 学 院: 机电与信息工程学院 专 业: 电子信息科学与技术 年级班级: 2012 级电子二班 一、实验目的 1、掌握 MATLAB 处理图像的相关操作,熟悉相关的函数以及基本的 MATLAB 语句。 2、掌握对多维图像处理的相关技能,理解多维图像的相关性质 3、熟悉 Help 命令的使用,掌握对相关函数的查找,了解 Demos 下的 MATLAB 自带的原函数文件。 4、熟练掌握部分绘图函数的应用,能够处理多维图像。 二、实验条件 MATLAB 调试环境以及相关图像处理的基本MATLAB 语句,会使用Help 命令进行相关函数查找 三、实验内容 1、nddemo.m函数文件的相关介绍 Manipulating Multidimensional Arrays MATLAB supports arrays with more than two dimensions. Multidimensional arrays can be numeric, character, cell, or structure arrays. Multidimensional arrays can be used to represent multivariate data. MATLAB provides a number of functions that directly support multidimensional arrays. Contents : Creating multi-dimensional arrays 创建多维数组 Finding the dimensions 寻找尺寸 Accessing elements 访问元素 Manipulating multi-dimensional arrays 操纵多维数组 Selecting 2D matrices from multi-dimensional arrays 从多维数组中选择二维矩阵 (1)、Creating multi-dimensional arrays Multidimensional arrays in MATLAB are created the same way as two-dimensional arrays. For example, first define the 3 by 3 matrix, and then add a third dimension. The CAT function is a useful tool for building multidimensional arrays. B = cat(DIM,A1,A2,...) builds a multidimensional array by concatenating( 联系起来 ) A1, A2 ... along the dimension DIM. Calls to CAT can be nested(嵌套). (2)、Finding the dimensions SIZE and NDIMS return the size and number of dimensions of matrices. (3)、Accessing elements To access a single element of a multidimensional array, use integer subscripts(整数下标 ). (4)、Manip...