How do I transform one matrix by another?

조회 수: 4 (최근 30일)
Anna Blakley
Anna Blakley 2016년 11월 9일
댓글: Hugh Collett 2020년 7월 6일
I am trying to write a program where I apply a linear transformation represented by one matrix to each value in a different matrix. I have no idea how to go about doing this. Thank you!
  댓글 수: 1
KSSV
KSSV 2016년 11월 9일
Why don't you give an example or elaborate your question.

댓글을 달려면 로그인하십시오.

답변 (1개)

Alon Rozen
Alon Rozen 2016년 11월 9일
편집: Alon Rozen 2016년 11월 9일
Hi, As KSSV wrote, you need to elaborate your question a bit. But if I am guessing right, you have a matrix A, represented in some coordinate system, and you want to transform it to a different coordinate system. You also have the transformation matrix T. If so, the way to transform is:
B = T*A*T'
Where T' is the transpose of T (actually it is the inverse matrix but with linear transformation it is the same) and B contains the transformed values of A. This is the case ONLY if I understood right your problem!
  댓글 수: 1
Hugh Collett
Hugh Collett 2020년 7월 6일
Hi Alon, I know this is a very old question but could you explain why it is not just B = T*A please? Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by