From 49e4a17f5cfa9fa99e3eff5965593f7d9ca06973 Mon Sep 17 00:00:00 2001 From: Ksyer Date: Tue, 31 Oct 2023 11:20:09 +0800 Subject: [PATCH] Fix bug --- can_recovery.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/can_recovery.m b/can_recovery.m index 542704f..84765f2 100644 --- a/can_recovery.m +++ b/can_recovery.m @@ -2,12 +2,12 @@ function flg = can_recovery(n, s) d = 100; eps = 1e-5; theta = randn(n, d); - y = theta * x; x = zeros(d, 1); random_indices = randperm(d, s); x(random_indices) = randn(s, 1); x = sign(x); + y = theta * x; cvx_begin variable s1(d)