4 ms·
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
by 323 4y ago
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-does-not-matlab-language-support-function-operator-chaining https://www.mathworks.com/matlabcentral/answers/1684819-why-...