An error is reported during the iteration:The function or variable 'last_act' is not recognized

You can try:

New MATLAB session.

Reinstalling CVX 2.2 Or try CVX 2.2.2 Announcement: CVX 2.2.2, the first "full" open-source release