Jul-12-2017, 12:20 PM
Hi guys,
I have two arrays "p" and "prec" as the following.
p:
Thanks for the help !!
I have two arrays "p" and "prec" as the following.
p:
Output:[[ 2 -30 20 4]
[ 2 -28 30 4]
[ 2 19 50 6]
[ 1 -27 60 3]
[ 2 3 71 6]]
prec:Output:[[ 0 0.1 0 0.1]
[ 0 0.1 0 0.1]
[ 0 0.1 0 0.1]
[ 0 0.1 0 0.1]
[ 0 0.1 0 0.1]]
I'd like to construct a third array that joins element by element from the previous arrays with the Latex symbol '$\pm$' in the middle, like this:Output:[[ 2 ± 0 -30 ± 0.1 20 ± 0 4 ± 0.1]
[ 2 ± 0 -28 ± 0.1 30 ± 0 4 ± 0.1]
[ 2 ± 0 19 ± 0.1 50 ± 0 6 ± 0.1]
[ 1 ± 0 -27 ± 0.1 60 ± 0 3 ± 0.1]
[ 2 ± 0 3 ± 0.1 71 ± 0 6 ± 0.1]]
So every element of the new array is composed of two numbers with ± in the middle. I tried different approaches, but I still have no idea about how to do it...Thanks for the help !!