已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
MATLAB复习资料1、onesY = ones(n) returns an n-by-n matrix of 1s. An error message appears if n is not a scalar. Y = ones(m,n) or Y = ones(m n) returns an m-by-n matrix of ones. Y = ones(d1,d2,d3.) or Y = ones(d1 d2 d3.) returns an array of 1s with dimensions d1-by-d2-by-d3-by-. Y = ones(size(A) returns an array of 1s that is the same size as A.Y =的(N)返回1,nn矩阵。若N是不是一个标量出现一个错误消息。Y =(M,N)的人(或y = M n )返回一个矩阵的M-和-n。Y =的(D1,D2,D3)或Y =(D1 D2 D3的)返回1尺寸d1-by-d2-by-d3-by数组的(Y =的大小(一)返回1,作为一个相同大小的数组2、zerosB = zeros(n) returns an n-by-n matrix of zeros. An error message appears if n is not a scalar. B = zeros(m,n) or B = zeros(m n) returns an m-by-n matrix of zeros. B = zeros(d1,d2,d3.) or B = zeros(d1 d2 d3.) returns an array of zeros with dimensions d1-by-d2-by-d3-by-. . B = zeros(size(A) returns an array the same size as A consisting of all zeros.B = 0(N)返回零的nn矩阵。如果n不是一个标量出现一个错误消息。B(m,n)0或B = 0(m n)返回零点的M-和-n矩阵。B = 0(D1,D2,D3)或B = 0(D1 D2 D3 )返回数组的尺寸d1-by-d2-by-d3-by零点。B = 0(大小(一)返回一个数组组成的一个同样大小的所有零。3、eyeY = eye(n) returns the n-by-n identity matrix. Y = eye(m,n) or eye(m n) returns an m-by-n matrix with 1s on the diagonal and 0s elsewhere. Y = eye(size(A) returns an identity matrix the same size as A.Y =眼(N)返回n-n矩阵。Y =(M,N)眼或眼( M )收益率与1的对角线上的和0的其他地方的M-和-n矩阵。Y =眼(大小(一)返回一个矩阵作为同样大小4、ceilB = ceil(A) rounds the elements of A to the nearest integers greater than or equal to A. For complex A, the imaginary and real parts are rounded independently.B细胞(一)发一个元素到最近的整数大于或等于B.复杂,虚部和实部为圆形独立。5、floorB = floor(A) rounds the elements of A to the nearest integers less than or equal to A. For complex A, the imaginary and real parts are rounded independently.RoundB =地板(一)发一个元素到最近的整数小于或等于B.复杂,虚部和实部为圆形独立。圆形的6、roundY = round(X) rounds the elements of X to the nearest integers. For complex X, the imaginary and real parts are rounded independently.Y =圆(x)轮x元素到最近的整数。对于复杂的X,虚部和实部为圆形独立。7、fixB = fix(A) rounds the elements of A toward zero, resulting in an array of integers. For complex A, the imaginary and real parts are rounded independently. B =固定(一)轮朝零元素,导致一个整数数组。针对复杂,虚部和实部为圆形独立。8、rot90B = rot90(A) rotates matrix A counterclockwise by 90 degrees. B = rot90(A,k) rotates matrix A counterclockwise by k*90 degrees, where k is an integer.B = rot90(一)矩阵的一个逆时针旋转90度。B = rot90(A,K)矩阵的逆时针旋转90度的k,其中k是整数。9、fliplrB = fliplr(A) returns A with columns flipped in the left-right direction, that is, about a vertical axis. If A is a row vector, then fliplr(A) returns a vector of the same length with the order of its elements reversed. If A is a column vector, then fliplr(A) simply returns A.B = fliplr()返回一个列将在左右方向,即,绕一垂直轴。如果是一个行向量,然后fliplr(一)返回一个向量,其元素的顺序相同长度的逆转。如果A是一个列向量,然后fliplr(一)只返回A。10、flipupB = flipud(A) returns A with rows flipped in the up-down direction, that is, about a horizontal axis. If A is a column vector, then flipud(A) returns a vector of the same length with the order of its elements reversed. If A is a row vector, then flipud(A) simply returns A.B = flipud()返回一个行翻转在上下方向,那就是,关于水平轴。如果A是一个列向量,然后flipud()返回一个向量,其元素的顺序相同长度的逆转。如果是一个行向量,然后flipud(一)只返回A。11、MeanM = mean(A) returns the mean values of the elements along different dimensions of an array. If A is a vector, mean(A) returns the mean value of A. If A is a matrix, mean(A) treats the columns of A as vectors, returning a row vector of mean values. If A is a multidimensional array, mean(A) treats the values along the first non-singleton dimension as vectors, returning an array of mean values. M = mean(A,dim) returns the mean values for elements along the dimension of A specified by scalar dim.M =平均()返回一个数组尺寸沿不同元素的平均值。如果是一个向量,意味着()返回A的平均值。如果是一个矩阵,意味着(一)以作为载体的列的平均值,返回一个行向量。如果是一个多维数组,意味着(一)治疗对第一个非单维向量,返回的平均值的数组。M =平均(一,DIM)返回沿着一个由标量DIM指定的维度元素的平均值。12、medianM = median(A) returns the median values of the elements along different dimensions of an array. If A is a vector, median(A) returns the median value of A. If A is a matrix, median(A) treats the columns of A as vectors, returning a row vector of median values. If A is a multidimensional array, median(A) treats the values along the first nonsingleton dimension as vectors, returning an array of median values. M = median(A,dim) returns the median values for elements along the dimension of A specified by scalar dim.M =中位数()返回的数组的尺寸沿不同的元素值的中位数。如果是一个向量,中值(一)如果是一个矩阵返回A的中位数,中位数(一)把一个向量列中值,返回一个行向量。如果是一个多维数组,中值(一)治疗对第一个nonsingleton尺寸为载体,返回数组的中位数。M =中位数(一,DIM)返回沿着一个由标量DIM指定的维度元素平均值。13、maxC = max(A) returns the largest elements along different dimensions of an array. If A is a vector, max(A) returns the largest element in A. If A is a matrix, max(A) treats the columns of A as vectors, returning a row vector containing the maximum element from each column. If A is a multidimensional array, max(A) treats the values along the first non-singleton dimension as vectors, returning the maximum value of each vector. C = max(A,B) returns an array the same size as A and B with the largest elements taken from A or B. C = max(A,dim) returns the largest elements along the dimension of A specified by scalar dim. For example, max(A,1) produces the maximum values along the first dimension (the rows) of A. C,I = max(.) finds the indices of the maximum values of A, and returns them in output vector I. If there are several identical maximum values, the index of the first one found is returned.C = max()返回的数组不同尺寸最大的元素。如果是一个向量,max(a)如果是一个矩阵,返回的最大元素的最大值(一),以作为载体的列,还含有每一列的最大元素的行向量。如果是一个多维数组,max(a)治疗对第一个非单维度为载体,返回每个向量的最大值。C = max(a,b)返回一个数组作为A和B的最大元素取自或b的大小一样。C = max(a, ,返回一个昏暗的)的标量DIM指定尺寸最大的元素。例如,max(a, ,1)产生的最大值沿第一维(行)A. C ,我= max()找到一个最大值的指标,并返回他们在输出向量,如果有几个相同的最大值,则返回第一个找到的指标。14、minC = min(A) returns the smallest elements along different dimensions of an array. If A is a vector, min(A) returns the smallest element in A. If A is a matrix, min(A) treats the columns of A as vectors, returning a row vector containing the minimum element from each column. If A is a multidimensional array, min operates along the first nonsingleton dimension. C = min(A,B) returns an array the same size as A and B with the smallest elements taken from A or B. C = min(A,dim) returns the smallest elements along the dimension of A specified by scalar dim. For example, min(A,1) produces the minimum values along the first dimension (the rows) of A. C,I = min(.) finds the indices of the minimum values of A, and returns them in output vector I. If there are several identical minimum values, the index of the first one found is returned.Cmin()返回的数组不同尺寸最小的元素。如果是一个向量,min()返回最小的元素,A.如果是一个矩阵,min(一)以作为载体的列,还包含了每一列的最小元素的行向量。如果是一个多维数组,闵沿着第一UL尺寸。Cmin(A,B)返回一个数组作为和B的最小元素取自或b的大小一样。Cmin(一, ,返回一个昏暗的)的标量DIM指定尺寸最小的元素。例如,MIN(一, ,1)产生的最小值沿第一维(行)A. C ,我= min()找到一个最小值的指标,并将它们输出向量如果有几个相同的最小值,则返回第一个找到的指标。15、ansMATLAB creates the ans variable automatically when you specify no output argument.MATLAB创建了ANS变量自动当你没有指定输出参数。16 NaNNaN returns the IEEE arithmetic representation for Not-a-Number (NaN). These result from operations which have undefined numerical results.南返回非数字的算术表示(南)。这些结果从数值结果未定义操作。17 InFInf returns the IEEE arithmetic representation for positive infinity. Infinity results from operations like division by zero and overflow, which lead to results too large to represent as conventional floating-point values.INF返回正无穷大的IEEE算术表示。无限的结果来自行动像被零除和溢出,导致的结果太大代表传统的浮点值。直方图function im_hist = im_histogram(im)m n=size(im);im_hist=zeros(1,256);for k=1:m for p=1:n im_hist(im(k,p)+1)=im_hist(im(k,p)+1)+1; end endplot(im_hist)字符定位bw = imread(text.png);a = bw(32:45,88:98);imshow(bw);figure, imshow(a);C = filter2(a,bw)%C = real(ifft2(fft2(bw) .* fft2(rot90(a,2),256,25
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年中国有色金属合金行业投资前景分析、未来发展趋势研究报告(智研咨询发布)
- 销售业绩分析与提升方案模板
- 宿舍用水协议书范本
- 射箭比赛安全协议书
- 宾馆收银员协议合同
- 展馆设计纸合同范本
- 履行法院判决协议书
- 学校老师入股协议书
- 学生培养学生协议书
- 婆婆过户房产协议书
- 统编版(2024)八年级上册语文期末复习:各单元知识点 讲义
- (完整版)文明施工管理体系及保证措施
- 2025年广西继续教育公需科目真题及答案
- 2025云南省交通投资建设集团有限公司普洱管理处招聘约350人笔试历年参考题库附带答案详解
- 电池(储能)安全事故应急预案(如使用)
- 冬季工地车辆安全培训课件
- 患者突发误吸应急预案演练(3篇)
- 北京国家电投集团创新投资招聘笔试题库2025
- 【大庆】2025年黑龙江大庆市龙凤区事业单位引进人才60人笔试历年典型考题及考点剖析附带答案详解
- 呼和浩特市春华水务集团公司招聘考试参考题库及答案解析
- 职业暴露预防知识培训课件
评论
0/150
提交评论