How to change a 3 dimensional matrix to 2 dimensinal?

1 Ansicht (letzte 30 Tage)
Shilpesh
Shilpesh am 8 Feb. 2017
Kommentiert: Shilpesh am 8 Feb. 2017
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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by