the cvx_optval in command window is 335829 and the cvx_optval in my function which i return is 1.2180e+05,that is the result of the first iteration .
it looks like a question about basic of matlab not about cvx.but thank you if you would like to help me