Am Montag, 16. Mai 2016 16:11:39 UTC+2 schrieb Chris Rackauckas:
>
> I make this function to solve this problem in one of m codes:
>
> function shapeResult(res)
> #Input is a vector of tuples
> #Output the "columns" as vectors
> out = cell(length(res[1]))
> for i = 1:length(res[1])
> out[i] = Vector{typeof(res[1][i])}(length(res))
> end
> for i = 1:length(res), j = 1:length(out)
> out[j][i] = res[i][j]
> end
> return tuple(out...)
> end
>
> Thanks, but it only works for a vector, not for a matrix as input. I could
rewrite it for that. So there is no solution without for-loops?