Sorry, because of the limitation of number of replies to one topic, i can only give my reply under this topic.
The specific error message is as follows:
The function’vec’ corresponding to the input parameter of type’double’ is not defined.
error cvxprob/solve (line 250)
Anew2 = Anew * diag(sparse(vec(amult(orow,:))));
error cvx_end (line 88)
solve( prob );
error TDMA_solvedby_cvx (line 110)
cvx_end
After i type “which -all vec”,there is:
D:\Program Files\MATLAB\R2016b\cvx-w64 (1)\cvx\functions@cvx\vec.m % cvx method
D:\Program Files\MATLAB\R2016b\toolbox\yalmip-master@sdpvar\vec.m % sdpvar method
D:\Program Files\MATLAB\R2016b\toolbox\yalmip-master\extras@ndsdpvar\vec.m % ndsdpvar method