I have two array(matrix with one row) temp1
and temp2
as follow:
temp1=[1 2 3 4 5 6 7 8 9]
temp2=[10 11 12 13 14 15 16 17 18]
and I have an index pn=3
. I need output as follows:
tempNew=[1 2 3 13 14 15 16 17 18]
i.e. how do I create tempNew
such that all values on indices up to pn
come from temp1
and all values beyond index pn
come from temp2
?