How to change a 3 dimensional matrix to 2 dimensinal?

2 views (last 30 days)
Hello, I have a matrix of size 1x512x512.... I need to convert it to 2 dimensional form of 512x512, for using imagesc... Can anyone help?
Thanks

Accepted Answer

Thibaut Jacqmin
Thibaut Jacqmin on 8 Feb 2017
If A is your matrix, you can use
squeeze(A)

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices 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!