필터 지우기
필터 지우기

how to combine three different column into a single colum using colon

조회 수: 2 (최근 30일)
MONICA RAWAT
MONICA RAWAT 2020년 2월 18일
댓글: MONICA RAWAT 2020년 2월 18일
suppose t1,t2,t3 are three different column
t1 t2 t3
1 2 3
10 20 30
40 50 60
so i want my output in a single colum as given below
t4
1:2:3
10:20:30
40:50:60
  댓글 수: 2
davide
davide 2020년 2월 18일
You mean this:
>> t1=[1;10;40]
t1 =
1
10
40
>> t2=[2;20;50]
t2 =
2
20
50
>> t3=[3;30;60];
>> t4=[t1 t2 t3]
t4 =
1 2 3
10 20 30
40 50 60
MONICA RAWAT
MONICA RAWAT 2020년 2월 18일
colon should come in between the number instead of space

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

답변 (1개)

KSSV
KSSV 2020년 2월 18일
If you have it in matrix...A use..
iwant = A(:) ;

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by