




已閱讀5頁,還剩2頁未讀, 繼續(xù)免費閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
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是不是一個標量出現(xiàn)一個錯誤消息。Y =(M,N)的人(或y = M n )返回一個矩陣的M-和-n。Y =的(D1,D2,D3)或Y =(D1 D2 D3的)返回1尺寸d1-by-d2-by-d3-by數(shù)組的(Y =的大?。ㄒ唬┓祷?,作為一個相同大小的數(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不是一個標量出現(xiàn)一個錯誤消息。B(m,n)0或B = 0(m n)返回零點的M-和-n矩陣。B = 0(D1,D2,D3)或B = 0(D1 D2 D3 )返回數(shù)組的尺寸d1-by-d2-by-d3-by零點。B = 0(大?。ㄒ唬┓祷匾粋€數(shù)組組成的一個同樣大小的所有零。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細胞(一)發(fā)一個元素到最近的整數(shù)大于或等于B.復(fù)雜,虛部和實部為圓形獨立。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ā)一個元素到最近的整數(shù)小于或等于B.復(fù)雜,虛部和實部為圓形獨立。圓形的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ù)。對于復(fù)雜的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 =固定(一)輪朝零元素,導(dǎo)致一個整數(shù)數(shù)組。針對復(fù)雜,虛部和實部為圓形獨立。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(一)矩陣的一個逆時針旋轉(zhuǎn)90度。B = rot90(A,K)矩陣的逆時針旋轉(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()返回一個列將在左右方向,即,繞一垂直軸。如果是一個行向量,然后fliplr(一)返回一個向量,其元素的順序相同長度的逆轉(zhuǎn)。如果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()返回一個行翻轉(zhuǎn)在上下方向,那就是,關(guān)于水平軸。如果A是一個列向量,然后flipud()返回一個向量,其元素的順序相同長度的逆轉(zhuǎn)。如果是一個行向量,然后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 =平均()返回一個數(shù)組尺寸沿不同元素的平均值。如果是一個向量,意味著()返回A的平均值。如果是一個矩陣,意味著(一)以作為載體的列的平均值,返回一個行向量。如果是一個多維數(shù)組,意味著(一)治療對第一個非單維向量,返回的平均值的數(shù)組。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 =中位數(shù)()返回的數(shù)組的尺寸沿不同的元素值的中位數(shù)。如果是一個向量,中值(一)如果是一個矩陣返回A的中位數(shù),中位數(shù)(一)把一個向量列中值,返回一個行向量。如果是一個多維數(shù)組,中值(一)治療對第一個nonsingleton尺寸為載體,返回數(shù)組的中位數(shù)。M =中位數(shù)(一,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()返回的數(shù)組不同尺寸最大的元素。如果是一個向量,max(a)如果是一個矩陣,返回的最大元素的最大值(一),以作為載體的列,還含有每一列的最大元素的行向量。如果是一個多維數(shù)組,max(a)治療對第一個非單維度為載體,返回每個向量的最大值。C = max(a,b)返回一個數(shù)組作為A和B的最大元素取自或b的大小一樣。C = max(a, ,返回一個昏暗的)的標量DIM指定尺寸最大的元素。例如,max(a, ,1)產(chǎn)生的最大值沿第一維(行)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()返回的數(shù)組不同尺寸最小的元素。如果是一個向量,min()返回最小的元素,A.如果是一個矩陣,min(一)以作為載體的列,還包含了每一列的最小元素的行向量。如果是一個多維數(shù)組,閔沿著第一UL尺寸。Cmin(A,B)返回一個數(shù)組作為和B的最小元素取自或b的大小一樣。Cmin(一, ,返回一個昏暗的)的標量DIM指定尺寸最小的元素。例如,MIN(一, ,1)產(chǎn)生的最小值沿第一維(行)A. C ,我= min()找到一個最小值的指標,并將它們輸出向量如果有幾個相同的最小值,則返回第一個找到的指標。15、ansMATLAB creates the ans variable automatically when you specify no output argument.MATLAB創(chuàng)建了ANS變量自動當你沒有指定輸出參數(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ǎo)致的結(jié)果太大代表傳統(tǒng)的浮點值。直方圖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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 六一活動自主策劃方案
- 六一童鞋打折活動方案
- 六一職工親子活動方案
- 六一資助活動方案
- 六一造勢活動方案
- 六下數(shù)學(xué)教研活動方案
- 六安幼兒園家長活動方案
- 醫(yī)療設(shè)備制度考試試題及答案
- 一模考試試題及答案美術(shù)
- 安全生產(chǎn)常識試題及答案
- 2025年黑龍江、吉林、遼寧、內(nèi)蒙古高考生物真題試卷(解析版)
- 2025年藝術(shù)與數(shù)字藝術(shù)類事業(yè)單位招聘考試綜合類專業(yè)能力測試試卷
- 福建省泉州市晉江市2025屆數(shù)學(xué)七下期末調(diào)研試題含解析
- 山西省運城市2025年中考一模語文試題(含答案)
- 電影放映員試題及答案
- 青科綜評面試真題及答案
- 2023年貴州省糧食儲備集團有限公司面向社會公開招聘工作人員15人筆試參考題庫附帶答案詳解
- 痘痘專業(yè)知識課件圖
- 超星爾雅學(xué)習(xí)通《國家安全教育(中國人民公安大學(xué))》2025章節(jié)測試附答案
- 艾梅乙防治知識培訓(xùn)課件
- 胸腔穿刺術(shù)護理查房
評論
0/150
提交評論