How to modify the matrix - rows and columns?

1 vue (au cours des 30 derniers jours)
Ahmed
Ahmed le 3 Fév 2024
Commenté : Ahmed le 3 Fév 2024
Hi,
I have a matrix A = 26332*3 and want extract data to make three new matrices e.g., A1 = 116 * 227 (from first column), A2 = A1 = 116 * 227 (from middle column) and A3 = 116 * 227 (last coumn). How can I do it?

Réponse acceptée

Torsten
Torsten le 3 Fév 2024
A1 = reshape(A(:,1),116,227)
A2 = reshape(A(:,2),116,227)
A3 = reshape(A(:,3),116,227)

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays 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