Use an index counter
counter = 1;
for step = 0.01 : 0.1 : 1
% Loop code
Hdx(counter) = % whatever.
counter = counter + 1;
end
Don't use i as a loop index - it's also the imaginary variable. That's why I used step as the name of the loop index. Once you use an index for Hdx you won't need to use eval. See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F