Adding array to the end of another array

조회 수: 79 (최근 30일)
Kunju Thimas
Kunju Thimas 2022년 4월 20일
편집: Bruno Luong 2022년 4월 20일
I want to insert a array elements to the end of another array. for example
a=[ 1 2 3 4] and b =[ 5 6 7 8], so i need to insert the 'b' elements to the end of array of 'a'. so the output would be a=[1 2 3 4 5 6 7 8]
please help me with a function that can do this

답변 (1개)

Bruno Luong
Bruno Luong 2022년 4월 20일
편집: Bruno Luong 2022년 4월 20일
a=[ 1 2 3 4]; b=[ 5 6 7 8];
a = [a b]
a = 1×8
1 2 3 4 5 6 7 8

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by