这种乘除法怎样解释呢?。

2 Ansichten (letzte 30 Tage)
disafer
disafer am 22 Nov. 2022
Kommentiert: Walter Roberson am 29 Nov. 2024
com= (input1 * profit) / total;
其中 input1
profit和 total三个变量都是一行N列变量,为什么它们可以如此乘除,怎样解释意义呢?谢谢!
  1 Kommentar
Walter Roberson
Walter Roberson am 29 Nov. 2024
Approximate translation:
Among them, input1 profit and total are all variables with one row and N columns. Why can they be multiplied and divided in this way? How can you explain the meaning? Thank you!

Melden Sie sich an, um zu kommentieren.

Antworten (1)

埃博拉酱
埃博拉酱 am 28 Nov. 2024
一行N列变量指的是行向量吗?两个行向量是不能做矩阵乘法的,这个代码应该会出错,因此也没有什么意义可以解释。
  3 Kommentare
Walter Roberson
Walter Roberson am 29 Nov. 2024
Approximate translation:
Does a row and N columns of variables refer to a row vector? Two row vectors cannot be matrix multiplied, so this code should fail, and there is no meaning to explain.
Walter Roberson
Walter Roberson am 29 Nov. 2024
The remark turns out to be relevant.
The original appears to contain a row vector "*" another row vector. The remark is that that would fail.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Logical finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!