Next, we will use a non-square matrix as input to the transpose function. In the above 3 examples, we have used a square matrix as our input.
In this section we have seen how to find out transpose of a matrix by using two methods one is by using the operator and the other one is by using transpose command. Transpose of the matrix is one of the important terminologies used in matrix manipulations. Mat1 = magic ( 4 )%no 4 represents no of rows and columns%
Matlab Editorįollowing table illustrate the Matlab code for example 2 by using transpose command. The following table illustrates the Matlab code for example 1 by using a transpose operator. Let us assume input matrix is mat1 in form of the magic command. The following table illustrate the Matlab code for example 1 by using transpose command: Matlab Editor The following table illustrates the Matlab code for example 1 by using the operator. Let us consider the input matrix as mat1