3 ms·
I vaguely remember that in Matlab some form of chaining wouldn't work: a.b.c. You had to do x=a.b and then x.c. It had all kinds of quirks like that.
by 323 4y ago
I vaguely remember that in Matlab some form of chaining wouldn't work: a.b.c. You had to do x=a.b and then x.c. It had all kinds of quirks like that.
- TylerE 4y agoYou couldn’t do something like (a.b).c? Still hackt, but a one liner at least Disclaimer: have never touched matlab
- 323 4y agoSo I googled that: setdiff(1:3, randi(3))(randi(2)) > One must factor out the resulting list from setdiff into a separate variable first: t = setdiff(1:3, randi(3)); t(randi(2)) > This is so medieval even by 1980s standards... https://www.mathworks.com/matlabcentral/answers/1684819-why-does-not-matlab-language-support-function-operator-chaining https://www.mathworks.com/matlabcentral/answers/1684819-why-...