How can I merge two rows into one

51 次查看(过去 30 天)
012786534
012786534 2016-5-10
评论: Mubashir 2017-2-28
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 个评论
Walter Roberson
Walter Roberson 2016-5-10
In what sense are any of the values "in 2 rows" ?
Guillaume
Guillaume 2016-5-10
Please use valid matlab syntax for your examples rather than abstract code that does not mean anything.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2016-5-10
[A(1,:), B(1,:), C(1,:), D(2,:), E(2,:), F(2,:)]

类别

Help CenterFile Exchange 中查找有关 Variables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by