Dear wch,
I have similar problem, but comes out with different error: Undefined function or variable “Atemp”.
Basically I tried to get optimal value of L2norm+L1norm using networkSamples (node=40, samplesize=25) to recover the network. Could you help me this problem? since the node is usually very big, parallel computing would be great if parfor works.
thank you for your reading.
function q=quad_fun(networkSamples, C)
t=40
parfor ipeak = 1:t
ZC = networkSamples(:,ipeak); beta = C;
cvx_begin quiet
variable Atemp(n)
dotproduct = networkSamples * Atemp(:);
minimize( norm( ZC * Atemp - dotproduct , 2 ) + beta*norm(Atemp,1) )
subject to
Atemp(ipeak)==0
cvx_end
end