I am trying to do something like this in Octave:
Assign some variables to a matrix, do some operation on the matrix and then assign the members of the matrix back to the variables, e.g:
x=1; y=2; d=[x y]; d=(d.^2)+1; [x y]=d; However, this does not work and only x is assigned the complete matrix. Is there a way to achieve this?