Matrix operation with equation
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hello, I have a equation:
X' = X + (0.7 * PN)
Where:
X = Matrix with size 2x2 as much as 64x4 (256)
PN = Matrix with size 1024x1
What should I do to get X', with the same shape and size with X?
Would you help me please?
Thankyou.
댓글 수: 7
Iain
2014년 1월 29일
Can you describe what that equation is trying to do?
José-Luis
2014년 1월 29일
How do you intend to add matrices of different size? That is undefined behavior.
Andi Tarigan
2014년 1월 29일
José-Luis
2014년 1월 29일
Yes, they need to be of the same size to add them.
Iain
2014년 1월 29일
They do need to be of the same size, but how you should do it depends on what you're trying to represent. For example, it could be that PN should be replaced by a some kind of subsampled version of PN to make it the same height as X, and then replicated to the same width as X, or it could be that X needs to be expanded to the same as PN.
Andi Tarigan
2014년 1월 29일
답변 (1개)
Azzi Abdelmalek
2014년 1월 29일
0 개 추천
If X' is the transpose of X, the only way that X and X' are the same size is when X is a square matrix
댓글 수: 1
Andi Tarigan
2014년 1월 29일
이 질문은 마감되었습니다.
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!