
It is the same idea with the transpose of a row vector to a column one and
vise versa. The transpose of an
matrix is an
one that is found if
the rows of the original matrix become columns in the transposed one.
Recall that the transpose in Matlab is performed with “ ' ”. See the following
examples to digest this issue.
Matlab’s command:
>> A4=[1 2 3; 4 5 6], size(A4), A4', size(A4'), A5=[A4' A4']
Matlab’s response:
A4 =
1 2 3
4 5 6
ans =
2 3
ans =
1 4
2 5
3 6
ans =
3 2
A5 =
1 4 1 4
2 5 2 5
3 6 3 6
Comments:
Exploiting the transpose of a matrix.
2.2.2 Elaborating on Parts of Matrices – The Colon Notation
As noted before, in Matlab, a matrix element position is indexed according to
the row and column number. Recall the aforementioned “A” matrix:
−
−−
=
×
1422
3521
42
A
If someone wants to extract the elements:
12
a ,
23
a , , and
24
a , this can be
done in the following way (
A
A has already been created and should be stored
Comentarios a estos manuales