(last_act) a bug at solve.m?

I got an error when I was trying to solve a problem using CVX. I think the variable last_act needs to be defined before it’s evaluated at line 347.

I have assigned it to 0, correct me if I’m wrong?

Thanks

Hassan