what happens behind "/"

1 回表示 (過去 30 日間)
warnerchang
warnerchang 2023 年 12 月 20 日
編集済み: Torsten 2023 年 12 月 20 日
[2:6]/[3:7]
Ans = 0.8148
what happens behind this operation?
Is there any algorithm?

採用された回答

Torsten
Torsten 2023 年 12 月 20 日
編集済み: Torsten 2023 年 12 月 20 日
If x = [2 3 4 5 6] and y = [3 4 5 6 7], then x/y determines the number "a" for which the error when approximating x by a*y is minimal.
The solution to this optimization problem is
x = 2:6;
y = 3:7;
a = sum(x.*y)/sum(y.^2)
a = 0.8148
a = x/y
a = 0.8148

その他の回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2023 年 12 月 20 日
help /
/ Right matrix divide. B/A is the matrix division of A into B, which is roughly the same as B*INV(A) , except it is computed in a different way. More precisely, B/A = (A'\B')'. See MLDIVIDE for details. C = MRDIVIDE(B,A) is called for the syntax 'B / A' when B or A is an object. See MATLAB Operators and Special Characters for more details. See also MLDIVIDE, RDIVIDE, LDIVIDE, PAGEMRDIVIDE. Documentation for mrdivide doc mrdivide Other uses of mrdivide codistributed/mrdivide laurpoly/mrdivide distributed/mrdivide se2/mrdivide dlarray/mrdivide StaticModel/mrdivide duration/mrdivide symbolic/mrdivide DynamicSystem/mrdivide tall/mrdivide embedded.fi/mrdivide timeseries/mrdivide gpuArray/mrdivide tsdata.datametadata/mrdivide LagOp/mrdivide

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by