Re:More developers use Linux than Mac, according to 2022 Sta...
by 323 on Wednesday December 28, 2022 @01:54PM
(#34164344)
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.
[ Parent
| on HN ]
Re:More developers use Linux than Mac, according to 2022 Sta...
by TylerE on Wednesday December 28, 2022 @04:12PM
(#34166027)
You couldn’t do something like (a.b).c?
Still hackt, but a one liner at least
Disclaimer: have never touched matlab
Re:More developers use Linux than Mac, according to 2022 Sta...
by 323 on Wednesday December 28, 2022 @05:14PM
(#34166742)
So 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-...