"/"如何在两行向量上真的起作用吗? [英] How does "/" really work on two row vectors?

查看:65
本文介绍了"/"如何在两行向量上真的起作用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下基本观察:

[1 2 3 4]/[2 4 6 8] % output: 0.5
[1 2 3 4]/[2 3 4 5] % output: 0.7407
([1 2 3 4]*[2 4 6 8] % error of course)

它不像A * inv(B)那样对我进行操作(也不像时间序列上的mrdivide那样工作,如果我没记错的话,它将像[1 2 3 4] ./[2 4 6 8]一样工作).

It does not look for me as A*inv(B) kind of operation (nor like mrdivide on timeseries which would work like [1 2 3 4]./[2 4 6 8] if Im not mistaken).

现在,我的问题是,"/"在具有相同长度的两个行向量上定义了什么操作?

Now, my question is, what operation does "/" define on two row vectors with the same length?

更新:
@ user1884905的想法是,两个行向量上的a/b可能会最小化norm(b*x - a).到目前为止,它似乎可以在某些数字测试中使用.如果是真的,请您提供一些官方参考吗?

UPDATE:
@user1884905 gave the idea that a/b on two row vectors might minimise norm(b*x - a). So far it seemed to work on some numeric tests. If it is true, can you give some official reference behind this please?

推荐答案

是的,看来我是对的.来自 MathWorks mrdivide

Yes, it seems I was right. From MathWorks mrdivide

如果A是m〜= n的矩形m×n矩阵,而B是n个元素的行向量或n列的矩阵,则x = B/A返回的最小二乘解方程组x * A = B."

"If A is a rectangular m-by-n matrix with m ~= n, and B is a row vector with n elements or a matrix with n columns, then x = B/A returns a least-squares solution of the system of equations x*A = B."

这篇关于"/"如何在两行向量上真的起作用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆