is there a way to store the optimization solution of the variables in-order to reuse them with CVX

also how to store the objective function solution

for example, I doing something like this

cvx_begin

variable CtC(24)

maximize( totcost );

subject to

for n=1:24

(UtC-eUtC)<=VtC;

cvx_end

eUtC(n+1)=UtC(n,1); solution of variable Utc