Add Expr3 in Phase Transitions in FAR using CS

This commit is contained in:
Ksyer
2024-01-27 20:57:17 +08:00
parent ebfe01bddf
commit 4f5877a3fd
3 changed files with 11 additions and 7 deletions
@@ -13,13 +13,17 @@ function flg = Expr3_can_recovery(Phi_far, N, M, n, s, eps)
y = Phi * sparse_signal(:);
cvx_begin quiet
variable x(M * N) complex
minimize(norm(x, 1))
variable x(M, N) complex
norm21 = 0;
for i = 1:N
norm21 = norm21 + norm(x(:, i));
end
minimize(norm21)
subject to
Phi * x == y
Phi * x(:) == y
cvx_end
p = norm(x - sparse_signal(:), 2);
p = norm(x(:) - sparse_signal(:), 2);
if p < eps
flg = 1;