How to combine 2 matrices without sorting

1 Ansicht (letzte 30 Tage)
Bharath
Bharath am 16 Feb. 2015
Kommentiert: Image Analyst am 16 Feb. 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

Akzeptierte Antwort

Image Analyst
Image Analyst am 16 Feb. 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 Kommentare
Bharath
Bharath am 16 Feb. 2015
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 am 16 Feb. 2015
OK, give me the link to it.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by