How to combine 2 matrices without sorting

2 次查看(过去 30 天)
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

采纳的回答

Image Analyst
Image Analyst 2015-2-16
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 个评论
Bharath
Bharath 2015-2-16
Thanks that works. I have now the issue with graph. May I'll post it as another question. Can you please look it and suggest me where I'm going wrong.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by