Consider the following.
a(1).x = [1 2 3];
a(2).x = [4 5 6];
[a.x]
will give you [1 2 3 4 5 6]
.
How to easily get [1 2 3; 4 5 6]
. I.e. without using reshape, for example.
P.S. The syntax [a.x;]
would be cool to have.
You can do it using vertcat:
vertcat(a.x)
ans =
1 2 3
4 5 6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With