MATLAB復習資料.doc_第1頁
MATLAB復習資料.doc_第2頁
MATLAB復習資料.doc_第3頁
MATLAB復習資料.doc_第4頁
MATLAB復習資料.doc_第5頁
已閱讀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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論