element-wise multiplication different in newer versions?

1 回表示 (過去 30 日間)
Anneke ten Doeschate
Anneke ten Doeschate 2017 年 3 月 30 日
コメント済み: Guillaume 2017 年 3 月 30 日
element-wise multiplication of two vectors of different length, should be possible according to: https://uk.mathworks.com/help/matlab/ref/times.html?searchHighlight=times&s_tid=doc_srchtitle
Is this a "new" feature? As my 2012a version of MatLab isn't able to replicate this example.

採用された回答

Jan
Jan 2017 年 3 月 30 日
Yes, this is the new feature called "arithmetic expansion" introduced in R2016b. See https://blogs.mathworks.com/loren/2016/10/24/matlab-arithmetic-expands-in-r2016b/
  1 件のコメント
Guillaume
Guillaume 2017 年 3 月 30 日
Actually, it's called implicit expansion as it does not just apply to arithmetic operations but also to comparison, logical, bitwise and several other functions.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by