필터 지우기
필터 지우기

combination of first row of G1 and first row of G2 until row13 of G1 and row13 of G2.

조회 수: 1 (최근 30일)
hello every one; i have two vector and i wan to combine G1 and G2 as one group but for example the combination of first row of G1 and first row of G2 until row13 of G1 and row13 of G2. help me to do this one.
G1 =
000001001
010111100
111111001
001111001
000000010
001011011
100110101
010101000
001111110
111010010
110010111
111110000
000000000
G2=
001
101
101
101
000
110
001
111
101
000
110
000
000

채택된 답변

Andrei Bobrov
Andrei Bobrov 2015년 5월 19일
G1 = ['000001001'
'010111100'
'111111001'
'001111001'
'000000010'
'001011011'
'100110101'
'010101000'
'001111110'
'111010010'
'110010111'
'111110000'
'000000000'];
G2=['001'
'101'
'101'
'101'
'000'
'110'
'001'
'111'
'101'
'000'
'110'
'000'
'000'];
out = G = [G1,G2];

추가 답변 (1개)

singh
singh 2015년 5월 19일
j=reshape([[G1]';[G2]'],1,[])

카테고리

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