Numeric vs matrix array multiplication and division

6 ビュー (過去 30 日間)
Ngoc My Huynh
Ngoc My Huynh 2016 年 12 月 7 日
回答済み: KSSV 2016 年 12 月 7 日
In what case do you use ./ or .* to multiply two arrays vs / and * alone? I'm confused about these two questions below, can someone answer the two questions below and explain?
  2 件のコメント
Jiro Doke
Jiro Doke 2016 年 12 月 7 日
Perhaps start with doing a little bit of reading in the documentation:
This is a fundamental concept in MATLAB, and there are lots of related pages in the DOC.
Good luck!
Ngoc My Huynh
Ngoc My Huynh 2016 年 12 月 7 日
I've already read that and it's still not clear to me

サインインしてコメントする。

採用された回答

KSSV
KSSV 2016 年 12 月 7 日
\ this is mldivide. solves the system of linear equations A*x = B.
/ this is mrdivide. perform right-matrix division, which is same as A*inv(B)
./ this is element by element division.
/. or ./. there are no such operators in MATLAB.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by