How can I merge two rows into one

30 Ansichten (letzte 30 Tage)
012786534
012786534 am 10 Mai 2016
Kommentiert: Mubashir am 28 Feb. 2017
Hi all,
Newbie question here. Let's say I have 6 variables (A-F) and values in 2 rows like this:
A B C D E F
1 2 3
4 5 6
Now I would simply like to merge them into one, like this:
A B C D E F
1 2 3 4 5 6
How would I do that? Thanks
  2 Kommentare
Walter Roberson
Walter Roberson am 10 Mai 2016
In what sense are any of the values "in 2 rows" ?
Guillaume
Guillaume am 10 Mai 2016
Please use valid matlab syntax for your examples rather than abstract code that does not mean anything.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 10 Mai 2016
[A(1,:), B(1,:), C(1,:), D(2,:), E(2,:), F(2,:)]
  3 Kommentare
Walter Roberson
Walter Roberson am 27 Feb. 2017
unique()
Mubashir
Mubashir am 28 Feb. 2017
Thanks...

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Variables 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