x_vec = 0.1:0.1:1;
first_time = 1;
for i=1:length(x_vec)
    if first_time
       dynare dsge_humancapital nostrict noclearall;
       first_time = 0;
    else
       set_param_value('x',x_vec(i));
       try
       steady;
       results_cell{i}=oo_.steady_state;
       catch
            disp('Failed to compute steady state')        
       end      
    end
end
