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,:)]
  댓글 수: 3
Walter Roberson
Walter Roberson 2017년 2월 27일
unique()
Mubashir
Mubashir 2017년 2월 28일
Thanks...

댓글을 달려면 로그인하십시오.

카테고리

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