Files
FAR_CS/Block RIP/Phase transitions/draw_ft_curve.m
T
2024-07-16 15:50:04 +08:00

13 lines
350 B
Matlab

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)+")");