11/14/2022 0 Comments Transpose dmin to fmin![]() ![]() For a vector input, the transpose function will convert a number of elements in the vector as a number of rows of the output. Transpose function can be used for both real and complex matrices. We use the transpose function to compute the transpose of a matrix, i.e., interchange its rows and columns. Please note that since our input has 5 columns and 1 row, our output will have 5 rows and 1 column.Īs we can see in the output, the transpose function has interchanged our input vector rows and columns. Pass this input vector as an argument to the transpose function.Initialize the input vector with 5 elements.In this example, we will use the transpose function to compute the transpose of a vector with 5 elements. Next, we will use the transpose function to compute the transpose of a vector input. In the above 4 examples, we have used a matrix as our input to the transpose function. In this example, we will use the transpose function to compute the transpose of a 2 x 3 real matrix.Īs we can see in the output, the transpose function has interchanged the rows and columns of our non-square input matrix. ![]() 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |