How to combine 2 matrices without sorting
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Bharath
le 16 Fév 2015
Commenté : Image Analyst
le 16 Fév 2015
I've 2 matrices of size 2048x1. I want to join both the matrices without sorting. I tried using reshape but it automatically is sorting my values. Can someone help with hints or suggestion on this. Thanks in advance
0 commentaires
Réponse acceptée
Image Analyst
le 16 Fév 2015
Try
matrix2D = [vector1, vector2]; % Creates a 2048 row by 2 column matrix.
or
tallVector = [vector1; vector2]; % Creates a 4096 row by one column vector.
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices 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!