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 Exchange에서 Creating 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