Add Expr3 in Phase Transitions in FAR using CS
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user