Hello
I was wondering if there is a faster alternative to table in the following example
a = RandomReal[{-1, 1}, 100000];
b = RandomReal[{-1, 1}, 100000];
t = Range[Length[a]];
xa = Table[{t[[i]], a[[i]]}, {i, 1, Length[a]}];
xb = Table[{t[[i]], b[[i]]}, {i, 1, Length[b]}];
The above code is just to create xa and xb (they are signals collected from an experiment). Now the piece of code that I am interesting in finding a faster version
er = Table[{xa[[i, 1]], Log@Abs[xa[[i, 2]] - xb[[i, 2]]]}, {i, 1,
Length@xa}];
In real signals there is a lot of Log[0] and Mathematica takes ages to finally compute er.
Many thanks
Ed