element-wise multiplication different in newer versions?
1 回表示 (過去 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.
0 件のコメント
採用された回答
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
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 Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!