News By Tag Industry News News By Place Country(s) Industry News
| learn the Two-Dimensional Arrays in matlabIf the matrix has many components, you can media Get into and proceed coming into on the next range. MATLAB knows you are nished coming into the matrix when you kind the ending segment .
2 5 M = - 3 4 - 7 1 We consult the dimension an range by the variety of lines and the variety of content. For example, an range with 3 lines and 2 content is said to be a 3 2 range. The variety of lines is always mentioned rst! We sometimes signify a matrix A as [aij] to indicate its components aij. The subscripts i and j, known as spiders, indicate the row and pillar place of the factor aij. The row variety must always come rst! For example, the factor a32 is in row 3, pillar 2. Two matrices A and B are equivalent if they have the same dimension and if all their corresponding components are equivalent, that is, aij bij for every value of i and j. Creating Matrices The most immediate way to make a matrix is to kind the matrix row by row, separat- ing the components in a given row with areas or commas and splitting the lines with semicolons. Supports are necessary. For example, coming into >>A = [2,4,10;16,3,7]; makes the following matrix: A = c 2 4 10 d 16 3 7 If the matrix has many components, you can media Get into and proceed coming into on the next range. MATLAB knows you are nished coming into the matrix when you kind the ending segment (]). You can add a row vector to another row vector to make either a third row vector or a matrix (if both vectors have the same variety of columns). Observe the change between the outcomes given by [a,b] and [a;b] in the following session: >>a = [1,3,5]; >>b = [7,9,11]; >>c = [a,b] c =1 3 5 7 9 11 >> D = [a;b] D = 1 3 5 7 9 11 visit: http://www.expertsmind.com/ End
|
|