Effacer les filtres
Effacer les filtres

How to change a 3 dimensional matrix to 2 dimensinal?

2 vues (au cours des 30 derniers jours)
Shilpesh
Shilpesh le 8 Fév 2017
Commenté : Shilpesh le 8 Fév 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

Réponse acceptée

Thibaut Jacqmin
Thibaut Jacqmin le 8 Fév 2017
If A is your matrix, you can use
squeeze(A)

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by