MATLAB復(fù)習(xí)資料.doc_第1頁(yè)
MATLAB復(fù)習(xí)資料.doc_第2頁(yè)
MATLAB復(fù)習(xí)資料.doc_第3頁(yè)
MATLAB復(fù)習(xí)資料.doc_第4頁(yè)
MATLAB復(fù)習(xí)資料.doc_第5頁(yè)
已閱讀5頁(yè),還剩2頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

MATLAB復(fù)習(xí)資料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是不是一個(gè)標(biāo)量出現(xiàn)一個(gè)錯(cuò)誤消息。Y =(M,N)的人(或y = M n )返回一個(gè)矩陣的M-和-n。Y =的(D1,D2,D3)或Y =(D1 D2 D3的)返回1尺寸d1-by-d2-by-d3-by數(shù)組的(Y =的大?。ㄒ唬┓祷?,作為一個(gè)相同大小的數(shù)組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不是一個(gè)標(biāo)量出現(xiàn)一個(gè)錯(cuò)誤消息。B(m,n)0或B = 0(m n)返回零點(diǎn)的M-和-n矩陣。B = 0(D1,D2,D3)或B = 0(D1 D2 D3 )返回?cái)?shù)組的尺寸d1-by-d2-by-d3-by零點(diǎn)。B = 0(大小(一)返回一個(gè)數(shù)組組成的一個(gè)同樣大小的所有零。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的對(duì)角線上的和0的其他地方的M-和-n矩陣。Y =眼(大?。ㄒ唬┓祷匾粋€(gè)矩陣作為同樣大小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細(xì)胞(一)發(fā)一個(gè)元素到最近的整數(shù)大于或等于B.復(fù)雜,虛部和實(shí)部為圓形獨(dú)立。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 =地板(一)發(fā)一個(gè)元素到最近的整數(shù)小于或等于B.復(fù)雜,虛部和實(shí)部為圓形獨(dú)立。圓形的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元素到最近的整數(shù)。對(duì)于復(fù)雜的X,虛部和實(shí)部為圓形獨(dú)立。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 =固定(一)輪朝零元素,導(dǎo)致一個(gè)整數(shù)數(shù)組。針對(duì)復(fù)雜,虛部和實(shí)部為圓形獨(dú)立。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(一)矩陣的一個(gè)逆時(shí)針旋轉(zhuǎn)90度。B = rot90(A,K)矩陣的逆時(shí)針旋轉(zhuǎn)90度的k,其中k是整數(shù)。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()返回一個(gè)列將在左右方向,即,繞一垂直軸。如果是一個(gè)行向量,然后fliplr(一)返回一個(gè)向量,其元素的順序相同長(zhǎng)度的逆轉(zhuǎn)。如果A是一個(gè)列向量,然后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()返回一個(gè)行翻轉(zhuǎn)在上下方向,那就是,關(guān)于水平軸。如果A是一個(gè)列向量,然后flipud()返回一個(gè)向量,其元素的順序相同長(zhǎng)度的逆轉(zhuǎn)。如果是一個(gè)行向量,然后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 =平均()返回一個(gè)數(shù)組尺寸沿不同元素的平均值。如果是一個(gè)向量,意味著()返回A的平均值。如果是一個(gè)矩陣,意味著(一)以作為載體的列的平均值,返回一個(gè)行向量。如果是一個(gè)多維數(shù)組,意味著(一)治療對(duì)第一個(gè)非單維向量,返回的平均值的數(shù)組。M =平均(一,DIM)返回沿著一個(gè)由標(biāo)量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 =中位數(shù)()返回的數(shù)組的尺寸沿不同的元素值的中位數(shù)。如果是一個(gè)向量,中值(一)如果是一個(gè)矩陣返回A的中位數(shù),中位數(shù)(一)把一個(gè)向量列中值,返回一個(gè)行向量。如果是一個(gè)多維數(shù)組,中值(一)治療對(duì)第一個(gè)nonsingleton尺寸為載體,返回?cái)?shù)組的中位數(shù)。M =中位數(shù)(一,DIM)返回沿著一個(gè)由標(biāo)量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()返回的數(shù)組不同尺寸最大的元素。如果是一個(gè)向量,max(a)如果是一個(gè)矩陣,返回的最大元素的最大值(一),以作為載體的列,還含有每一列的最大元素的行向量。如果是一個(gè)多維數(shù)組,max(a)治療對(duì)第一個(gè)非單維度為載體,返回每個(gè)向量的最大值。C = max(a,b)返回一個(gè)數(shù)組作為A和B的最大元素取自或b的大小一樣。C = max(a, ,返回一個(gè)昏暗的)的標(biāo)量DIM指定尺寸最大的元素。例如,max(a, ,1)產(chǎn)生的最大值沿第一維(行)A. C ,我= max()找到一個(gè)最大值的指標(biāo),并返回他們?cè)谳敵鱿蛄?,如果有幾個(gè)相同的最大值,則返回第一個(gè)找到的指標(biāo)。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()返回的數(shù)組不同尺寸最小的元素。如果是一個(gè)向量,min()返回最小的元素,A.如果是一個(gè)矩陣,min(一)以作為載體的列,還包含了每一列的最小元素的行向量。如果是一個(gè)多維數(shù)組,閔沿著第一UL尺寸。Cmin(A,B)返回一個(gè)數(shù)組作為和B的最小元素取自或b的大小一樣。Cmin(一, ,返回一個(gè)昏暗的)的標(biāo)量DIM指定尺寸最小的元素。例如,MIN(一, ,1)產(chǎn)生的最小值沿第一維(行)A. C ,我= min()找到一個(gè)最小值的指標(biāo),并將它們輸出向量如果有幾個(gè)相同的最小值,則返回第一個(gè)找到的指標(biāo)。15、ansMATLAB creates the ans variable automatically when you specify no output argument.MATLAB創(chuàng)建了ANS變量自動(dòng)當(dāng)你沒有指定輸出參數(shù)。16 NaNNaN returns the IEEE arithmetic representation for Not-a-Number (NaN). These result from operations which have undefined numerical results.南返回非數(shù)字的算術(shù)表示(南)。這些結(jié)果從數(shù)值結(jié)果未定義操作。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算術(shù)表示。無限的結(jié)果來自行動(dòng)像被零除和溢出,導(dǎo)致的結(jié)果太大代表傳統(tǒng)的浮點(diǎn)值。直方圖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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論