computation of l2 norm using spl1 solver iam getting following errors while trying to reconstruct the ecg signal.
In an assignment A(:) = B, the number of elements in A and B must be the same.
Error in spgl1 (line 351)
lastFv(1) = f;
Error in spg_bpdn (line 51)
[x,r,g,info] = spgl1(A,b,tau,sigma,x0,options);
Error in ACS (line 178)
[data_rec] = spg_bpdn(Smat,M,sigma,opts_n); % Signal reconstruction recovery using BPDN