Line vector + row vector = array works in r2017a but not in r2016a
Show older comments
I use the + operator in my r2017a version to sum a line vector and a row vector to give me an array.
A = [1 2]
B = [1;2]
C = A + B = [2 3; 3 4]
I tried to run my code on an other computer with the r2016a version but it doesn't work.
How can I simply do this command?
1 Comment
Steven Lord
on 8 May 2017
FYI this behavior is known as implicit expansion and was added to the arithmetic operators like + in release R2016b.
Accepted Answer
More Answers (0)
Categories
Find more on Time Series Events 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!