answersLogoWhite

0


Best Answer

-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

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an algorithm to find the transpose of a matrix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 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 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.


Write an algorithm and draw flowchart to calculate the perimeter of a square?

write an algorithm and draw a flow chart to find perimeter of a square


Can you write an algorithm to find the beast numbers?

maybe


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.


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 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.


Write a algorithm to find sum of n integers?

Yes, please do.