element-wise multiplication different in newer versions?
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
Jan
on 30 Mar 2017
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 Comment
Guillaume
on 30 Mar 2017
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.
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!