AStrain not working in pepper? (5.1.9 - 5.1.11)

A place to report and discuss potential bugs
Stefan Stoll
EasySpin Creator
Posts: 1041
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

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

Post 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
iliak
User
Posts: 10
Joined: Wed May 11, 2016 9:40 am

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

Post by iliak »

Thanks, very interesting. Indeed handy, but I can see how bugs can be introduced if column and row vectors are mixed up.
Post Reply