I want to preallocate a vector with n rows (e.g. A below) ready for filling in a loop with Measurements.jl variables, i.e. variables of the form a ± b. For example:
using Measurements
A = zeros(5,1) # this doesn't work
for n = 1:5
local B = rand() ± rand()
local C = rand() ± rand()
global A[n,1] = sqrt.((B-C).^2)
end
println(A)