
function pvals = parent_vals_index(ps, i)

pvals = '';
for j=1:length(ps)
  pvals = sprintf('%s[x[%d]]', pvals, ps(j));
end
