Let's suppose I have a function that returns three column vectors: "a", "b" and "c". (in this order) As of now I'm assigning these vectors to the columns of a matrix in the following way:
[A(:,1), A(:,2), A(:,3)] = myfun(…)
I would like to know if there is a more compact way to achieve this result, for example, something like this: [A(:,:)]=myfun(…)
And, if possible, I would like to extend this concept for the fields of a struct.
Best Answer