answersLogoWhite

0

-Algorithm-

1.START

2.Take m1 and m2 as integer matrix.

3.Input the values for original matrix and store it in m1.

4.Convert each row of the matrix ma in to column of matrix m2.

5.Display both matrix m1 and m2.

6.STOP.

'C' program

#include<stdio.h>

void main()

{

int m1[3][3],m2[3][3];

int i,j;

for (i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

printf("\n Enter value of%d rows and %d cols: ",i+1,j+1);

scanf("%d",&m1[i][j]);

}

}

for(i=0;i<3;i++);

{

for(j=0;j<3;j++)

{

m2[j][i]=m1[i][j];

}

}

printf("\n Original Matrix");

printf("\n ---------------\n");

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

printf("%d\t",m1[i][j]);

}

printf("\n") ;

}

printf("\n Transpose Matrix");

printf("\n ----------------\n");

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

print("%d\t",m2[i][j]);

}

printf("\n")

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Draw a flowchart to find the transpose of matrices?

draw the flowchart for transpose of a matrice


How do you write a java program to find the transpose of the matrix for the given elements?

You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.


How can one find a unitary matrix?

To find a unitary matrix, one must first square the matrix and then take the conjugate transpose of the result. If the conjugate transpose of the squared matrix is equal to the identity matrix, then the original matrix is unitary.


How do you find transportation of matrix?

Invert rows and columns to get the transpose of a matrix


Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix?

Sp[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Answer]]ell chec[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&amp;action=edit&amp;section=new|Answer it!]]k your answe[[Q/Discuss:Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Disc]][[help/answering questions|guidelin]]Spell check your answeresussionr[[help/signing in|full benefits]] Save C[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 ]][[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&amp;action=edit&amp;section=new|Answering 'Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix?']]matrix?ancel[[Q/How many animals are in West Texas|How many animals are in West Texas?]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]] Service workshop?[[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]]More Q&amp;A


Write an algorithm to find the root of quadratic equation?

Write an algorithm to find the root of quadratic equation


What is the algorithm to find the longest increasing path in a matrix?

The algorithm to find the longest increasing path in a matrix is called the Longest Increasing Path in a Matrix (LIP) algorithm. It involves using dynamic programming to recursively search for the longest increasing path starting from each cell in the matrix. The algorithm keeps track of the length of the longest increasing path found so far and updates it as it explores different paths.


What is an orthogonal matrix?

A matrix A is orthogonal if itstranspose is equal to it inverse. So AT is the transpose of A and A-1 is the inverse. We have AT=A-1 So we have : AAT= I, the identity matrix Since it is MUCH easier to find a transpose than an inverse, these matrices are easy to compute with. Furthermore, rotation matrices are orthogonal. The inverse of an orthogonal matrix is also orthogonal which can be easily proved directly from the definition.


Can you write an algorithm to find the beast numbers?

maybe


How to find the Inverse of a square symmetric matrix?

You can factorize the matrix using LU or LDLT factorization algorithm. inverse of a diagonal matrix (D) is really simple. To find the inverse of L, which is a lower triangular matrix, you can find the answer in this link.www.mcs.csueastbay.edu/~malek/TeX/Triangle.pdfSince (A T )-1 = (A-1 )T for all matrix, you'll just have to find inverse of L and D.


How to find the inverse of a square matrix?

You can factorize the matrix using LU or LDLT factorization algorithm. inverse of a diagonal matrix (D) is really simple. To find the inverse of L, which is a lower triangular matrix, you can find the answer in this link.www.mcs.csueastbay.edu/~malek/TeX/Triangle.pdfSince (A T )-1 = (A-1 )T for all matrix, you'll just have to find inverse of L and D.


How to find the inverse of a symmetric matrix?

You can factorize the matrix using LU or LDLT factorization algorithm. inverse of a diagonal matrix (D) is really simple. To find the inverse of L, which is a lower triangular matrix, you can find the answer in this link.www.mcs.csueastbay.edu/~malek/TeX/Triangle.pdfSince (A T )-1 = (A-1 )T for all matrix, you'll just have to find inverse of L and D.