hi
I have data in the array (array size is 12) which is divided into 5 groups as shown in attached picture. Now for e.g I want to cut and move data from group 4 position (10) to group 2 position (7+1) how I do it. this picking and dropping procedure is variable in each iteration. sometimes from one group to another. but for this example, I take the data from position 10 and move it to position 8.
A=[10 1 212 2 313 3 414 5 617 7 811 8 91 10 112 12 133 14 157 16 178 7 811 1 2]
when I cut data from group 4 position (10) and past on (7+1) location then it overlaps on the group 3 data. I want to place this data on position (7+1) and After this adjustment, I need to start group 3 from position (9). how I cut and past the data by maintaining the array size same without effecting the values of groups. kindly help me I will be highly thankful to you
I need as following
A=[10 1 212 2 313 3 414 5 617 7 811 8 91 10 117 16 172 12 133 14 158 7 811 1 2]
with best Regards
Mudasir
Best Answer