Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



one liner using deal()
Posted:
Mar 14, 2013 2:51 PM


I was trying to reduce these 7 commands to a single command:
x = s(1); y = s(2); z = s(3); ux = s(4); uy = s(5); uz = s(6); t = s(7);
The best I could think of was using these two commands:
ss = num2cell(s); [x y z ux uy uz t] = deal(ss{:});
Is there a way to do that with a single command?
Thanks ~Paul



