How to multiply matrix with vector?

5 ビュー (過去 30 日間)
Lu Da Silva
Lu Da Silva 2021 年 3 月 26 日
コメント済み: Lu Da Silva 2021 年 3 月 26 日
I need to find E and K as 2 separate vectors.
A, B and D are matrices of their own (3x3). N and M are vectors (2x5).
Mathematically E = A*N + B*M and K = B*N + D*M but I struggle to implement it into MatLab, especially with the fact that it's an inverse matrix... I'd appreciate any help!
Thank you in advance :)

回答 (1 件)

Jan
Jan 2021 年 3 月 26 日
  • N and M are vectors (2x5)
  • A, B and D are matrices of their own (3x3)
Then the equation [E;K] = [A, B; B, D]^-1 * [N;M] is not mathematically defined. The inverse of a 6x6 matrix is 6x6. You cannot multiply this with a 4x5 matrix.
Actually Matlab was devolopped for exactly such Matrix equations. So using the \ operator will do everything you need already - if the problem has a solution. But this is not the case for your problem.
  1 件のコメント
Lu Da Silva
Lu Da Silva 2021 年 3 月 26 日
Are you saying I cannot solve the system?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by