How to combine 2 matrices without sorting

3 ビュー (過去 30 日間)
Bharath
Bharath 2015 年 2 月 16 日
コメント済み: Image Analyst 2015 年 2 月 16 日
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.
Image Analyst
Image Analyst 2015 年 2 月 16 日
OK, give me the link to it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by