Possible Duplicates:
MATLAB Easiest way to assign elements of a vector to individual variables.
How do I do multiple assignment in MATLAB?
If I have a matrix: A = [1, 5, 10]
, do I set a1 = A(1), b1 = B(1)
, etc. on one line? I want to do something like:
[a1 a2 a3] = Blah(A)