If I need to get some variables values from a vector in Matlab, I could do, for instance,
x = A(1); y = A(2); z = A(3);
or I think I remember I could do something like
[x, y, z] = A;
However Matlab is not recognizing this format. what was the correct syntax? Thanks!!
@Thales is correct. If
Ahappens to be a cell array rather than a matrix you could do something like this:But that is as close as it gets unless
Ais a function.