Line vector + row vector = array works in r2017a but not in r2016a

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

FYI this behavior is known as implicit expansion and was added to the arithmetic operators like + in release R2016b.

Sign in to comment.

 Accepted Answer

More Answers (0)

Asked:

on 8 May 2017

Commented:

on 8 May 2017

Community Treasure Hunt

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

Start Hunting!