13 lines
350 B
Matlab
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)+")"); |