You can achieve this in MATLAB by first creating the column array and then assigning the output array of the function to the the column array. Here is an example:
main.m361 chars14 linesMake sure to replace [1 2 3] with your actual output array in the function yourFunction().
gistlibby LogSnag