clear all; 
clc;
a=[ -1	-4	-7	-11	-14	-17;
-2	-5	-8	-12	-15	-18;
-3	-6	-9	-13	-16	-19;
0.100000000000000	0.400000000000000	0.700000000000000	0.110000000000000	0.140000000000000	0.170000000000000;
0.200000000000000	0.500000000000000	0.800000000000000	0.120000000000000	0.150000000000000	0.180000000000000;
0.300000000000000	0.600000000000000	0.900000000000000	0.130000000000000	0.160000000000000	0.190000000000000];
b =[ -0.300000000000000	-0.600000000000000	-0.900000000000000	-0.130000000000000	-0.160000000000000	-0.190000000000000;
-0.200000000000000	-0.500000000000000	-0.800000000000000	-0.120000000000000	-0.150000000000000	-0.180000000000000;
-0.100000000000000	-0.400000000000000	-0.700000000000000	-0.110000000000000	-0.140000000000000	-0.170000000000000;
3	6	9	13	16	19;
2	5	8	12	15	18;
1	4	7	11	14	17]
Output : 
I need to find output maximum magnitude of each element from a and b combined and extract postion of that element either from a or b array. The output looks below :
c = [-1	-4	-7	-11	-14	-17;
-2	-5	-8	-12	-15	-18;
-3	-6	-9	-13	-16	-19;
3	6	9	13	16	19;
2	5	8	12	15	18;
1	4	7	11	14	17]
Any help would be appreciated. 
Thanks in advance