Inverse $z$-transform of a transfer function in MATLAB
The function iztrans only supports symbolic expressions. This should do the trick:

[num,den] = tfdata(H);
syms z
H_sym = poly2sym(cell2mat(num),z)/poly2sym(cell2mat(den),z);
h_inv = iztrans(H_sym);