Can MATLAB divide two row vectors?

Hi. I have a simple question. I inputted [3 3 3]/[4 5 6] in MATLAB and got 0.5844 (format short).
My question is how can MATLAB divide two row vectors?

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 11 月 25 日
編集済み: Azzi Abdelmalek 2013 年 11 月 25 日

0 投票

a=[3 3 3]
b=[4 5 6]
a./b

その他の回答 (1 件)

Luca Kaiser
Luca Kaiser 2022 年 5 月 31 日

0 投票

Hi can anyone explain what Matlab is doing to get the 0.5844?
Thanks!

2 件のコメント

Walter Roberson
Walter Roberson 2022 年 5 月 31 日
[3 3 3]/[4 5 6] is [3 3 3]*pinv([4 5 6]) to within roundoff
Stephen23
Stephen23 2022 年 5 月 31 日
From the MRDIVIDE documentation: "If A is a rectangular m-by-n matrix with m ~= n, and B is a matrix with n columns, then x = B/A returns a least-squares solution of the system of equations x*A = B."

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

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

AM
2013 年 11 月 25 日

コメント済み:

2022 年 5 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by