Reshape Nx1 struct with field of Mx1 elements to N*Mx1 vector
1 view (last 30 days)
Sabyrzhan Tasbolatov on 22 May 2022
I have a struct A of [1000x1] size. There is a field "bar" which has [100x1] elements.
I want to have 1 variable, let's say B, which will be [1000*100x1] of "bar" elements.
How can I do it without iterating a struct and appending on some prepared zeroed vector? Can reshape do it?