What I want to be able to do is to take the elements of a vertical vector from a matrix and assign them to variables. I have provided a simple example below to show what I want to happen.
for k = 1 : 20
a(:,k) = [k k+2];
end
[b, c] = a(:, 4)
so in this case
b = 4
c = 6
I know this can be done with this method
values = a(:, 4);
b = values(1);
c = values(2);
But I wanted to know if the vector values can be assigned without having to do all that mainly to make things easier to manage. Any advice welcome!