Formally enter MATLAB image processing

Source: Internet
Author: User

    • Matlab takes the whole function : fix, Floor, ceil, round, the specific application method is as follows:

1. Fix to the 0 direction rounding, such as fix (-1.3) =-1; Fix (1.3) = 1;

2. Floor, as the name implies, is to take the whole in the direction of negative infinity, such as floors (-1.3) =-2; Floor (1.3) = 1;

3. The ceil is the ceiling, rounding in the direction of infinity, such as ceil (-1.3) =-1; Ceil (1.3) = 2;

4. Round rounded to the nearest integer, such as round (-1.3) =-1; Round (1.3) = 1;

(This section is transferred from http://www.cnblogs.com/york-hust/p/3238714.html)

    • Matlab array generation function is: zeros, ones, the specific application method is as follows:

1. Ones (A, a, B) produces an all 1 array in column A, ones (a) produces a row a column full 1 array;

2. The zeros () function is the same as the ones () function, which only produces the full 0.

    • The size () function of matlab: Gets the number of rows and columns of the array:

1. S=size (a), when there is only one output parameter, returns a row vector, the first element of the line vector is the number of rows of the array, and the second element is the number of columns of the array;

2. [R,c]=size (A), when there are two output parameters, the size function returns the number of rows of the array to the first output variable, returning the number of columns of the array to the second output variable;

3. If you add another item to the size function's input parameter and assign a value to the item with 1 or 2, size returns the number of rows or columns in the array. where R=size (a,1) The statement returns the number of rows of array A, c=size (a,2) When the statement returns the column count of array A.

4. x (I,:) represents all elements of section I. x (:, i) represents all elements of column I. x ([I:k],:) represents all elements of X's I-to-K rows. If you want to separate the elements of line I and J, X ([I,j],:).) The same reading column is similar.

(This section is transferred from http://blog.sina.com.cn/s/blog_6133198901018srz.html)

    • peaks,mesh,meshgrid function of matlab

1. See http://blog.csdn.net/glb562000520/article/details/10329471

Formally enter MATLAB image processing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.