Can MATLAB divide two row vectors?
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (1)
Luca Kaiser
am 31 Mai 2022
0 Stimmen
Hi can anyone explain what Matlab is doing to get the 0.5844?
Thanks!
2 Kommentare
Walter Roberson
am 31 Mai 2022
[3 3 3]/[4 5 6] is [3 3 3]*pinv([4 5 6]) to within roundoff
Stephen23
am 31 Mai 2022
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."
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!