rsolve is for recurrence equations. There is a MuPAD-level routinerec for representing recurrence equations, and the MuPAD-levelsolve routine can process them.
Note that these are at the MuPAD level, and do not have direct exposure at the MATLAB level. You need to feval() or evalin() the symbolic engine providing MuPAD code, such as
Best Answer