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

조회 수: 2 (최근 30일)
disafer
disafer 2022년 11월 22일
댓글: Walter Roberson 2024년 11월 29일
com= (input1 * profit) / total;
其中 input1
profit和 total三个变量都是一行N列变量,为什么它们可以如此乘除,怎样解释意义呢?谢谢!
  댓글 수: 1
Walter Roberson
Walter Roberson 2024년 11월 29일
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!

댓글을 달려면 로그인하십시오.

답변 (1개)

埃博拉酱
埃博拉酱 2024년 11월 28일
一行N列变量指的是行向量吗?两个行向量是不能做矩阵乘法的,这个代码应该会出错,因此也没有什么意义可以解释。
  댓글 수: 3
Walter Roberson
Walter Roberson 2024년 11월 29일
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 2024년 11월 29일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!