3d to 2d matrix
1 view (last 30 days)
Show older comments
Paulo Eduardo Beiral on 22 Jun 2021
Commented: Joseph Cheng on 22 Jun 2021
I need to convert this "u" 3d matrix in a 2d numerical matrix, without having to cut and paste number by number in a new one, just like the "u2" example.
Thank you for any help!
take a look at the function squeeze()
for ind = 1:3
u2 = squeeze(val);
if the starting matrix is a bit more complicated you can also use reshape() as well
More Answers (0)
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!