How to show output in multidimensional array?

1 view (last 30 days)
I have an output shows me:
udd =
[4x2 double]
[4x2 double]
where
udd{1}=
1 2
2 4
3 1
4 3
udd{2}=
1 3
2 1
3 4
4 2
What can i do if i wan my output shows me in a multidimensional array? For example,
udd(:,:,1)=
1 2
2 4
3 1
4 3
udd(:,:,2)=
1 3
2 1
3 4
4 2

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 12 Jun 2014
udd2 = cat(3,udd{:});

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!