Tuple to array

output is one element tuple vector. I can’t access the elements of that output.
so, how to convert output to a 3x1 matrix.
Thank You


should give you a tuple, why do you need to convert it to a matrix?

1 Like

reduce(vcat,only(s)) or vcat(only(s)...) will convert it to a 3-vector, which should be compatible with a 3x1 matrix almost everywhere unless you have typed some functions too strictly. You can apply an additional reshape(thevector,3,1) if you insist on it being a matrix rather than vector.