Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
MONICA RAWAT
MONICA RAWAT am 18 Feb. 2020
Kommentiert: MONICA RAWAT am 18 Feb. 2020
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 Kommentare
davide
davide am 18 Feb. 2020
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 am 18 Feb. 2020
colon should come in between the number instead of space

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 18 Feb. 2020
If you have it in matrix...A use..
iwant = A(:) ;

Kategorien

Mehr zu Data Types 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