function t = log2List() init = 4 t = zeros(1,6) for z = 1 : 6 t(z) = 2^(z-1) * init end
init = 4 t = 0 0 0 0 0 0 t = 4 0 0 0 0 0 t = 4 8 0 0 0 0 t = 4 8 16 0 0 0 t = 4 8 16 32 0 0 t = 4 8 16 32 64 0 t = 4 8 16 32 64 128 ans = 4 8 16 32 64 128
function t = log2List() init = 4 t = zeros(1,6) for z = 1 : 6 t(z) = 2^(z-1) * init end
init = 4 t = 0 0 0 0 0 0 t = 4 0 0 0 0 0 t = 4 8 0 0 0 0 t = 4 8 16 0 0 0 t = 4 8 16 32 0 0 t = 4 8 16 32 64 0 t = 4 8 16 32 64 128 ans = 4 8 16 32 64 128