Update PT code in Block RIP

This commit is contained in:
Ksyer
2024-07-16 15:50:04 +08:00
parent ce60606d82
commit 088f1a82fd
7 changed files with 66 additions and 81 deletions
@@ -0,0 +1,13 @@
M = 10;
N = 320 + 160;
epi = 0.02;
[pt_block, pt_sparse] = block_phase_transition(N, M);
plot(pt_sparse);
% hold on;
% plot(pt_sparse);
% xlim([1, 5]);
ylim([1, N]);
xlabel("Sparsity (k)");
ylabel("Number of measurements (n)")
legend("Block sparse recovery", "Sparse recovery");
title("Phase Transition Curve (N = "+string(N)+", M = "+string(M)+")");