Page 2 of 2

Re: AStrain not working in pepper? (5.1.9 - 5.1.11)

Posted: Thu Jul 13, 2017 10:21 pm
by Stefan Stoll
It's called implicit expansion, quite handy actually but hard to spot when one is concerned about backwards compatibility.

Code: Select all

a = rand(5,1);
b = rand(1,5);
c = a + b  % gives a 5x5 matrix in >=R2016b, crashes in <R2016b

Re: AStrain not working in pepper? (5.1.9 - 5.1.11)

Posted: Thu Jul 13, 2017 10:28 pm
by iliak
Thanks, very interesting. Indeed handy, but I can see how bugs can be introduced if column and row vectors are mixed up.