Namely, why doesn't this work?
[a,b]=[1,2];
I would expect
a=1;
b=2;
but it just says 'Too many output arguments.'
Is it the only way that
a=somearray(1);
b=somearray(2);
to do such assignment?
Namely, why doesn't this work?
[a,b]=[1,2];
I would expect
a=1;
b=2;
but it just says 'Too many output arguments.'
Is it the only way that
a=somearray(1);
b=somearray(2);
to do such assignment?