How to combine 2 matrices without sorting
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bharath
el 16 de Feb. de 2015
Comentada: Image Analyst
el 16 de Feb. de 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 comentarios
Respuesta aceptada
Image Analyst
el 16 de Feb. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!