forked from apetre/Sparse-Recovery-using-AMP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhaseDiagramPlot.m
33 lines (33 loc) · 842 Bytes
/
PhaseDiagramPlot.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
figure(3)
clf;
set(3,'Name','Relative Phase Diagrams');
subplot(2,2,1)
phaseSpace = phaseSpace_spgl1;
phaseSpace(~isfinite(phaseSpace)) = 10;
imagesc(delta,rho,log10(phaseSpace)')
caxis([-7,0]);
set(gca,'YDir','normal')
xlabel('Undersampling, \delta = n / N');
ylabel('Sparsity, \rho = k / n');
colorbar;
title('SPGl1');
subplot(2,2,3)
phaseSpace = phaseSpace_ist;
phaseSpace(~isfinite(phaseSpace)) = 10;
imagesc(delta,rho,log10(phaseSpace)')
caxis([-7,0]);
set(gca,'YDir','normal')
xlabel('Undersampling, \delta = n / N');
ylabel('Sparsity, \rho = k / n');
colorbar;
title('IST');
subplot(2,2,4)
phaseSpace = phaseSpace_amp;
phaseSpace(~isfinite(phaseSpace)) = 10;
imagesc(delta,rho,log10(phaseSpace)')
caxis([-7,0]);
set(gca,'YDir','normal')
colorbar
xlabel('Undersampling, \delta = n / N');
ylabel('Sparsity, \rho = k / n');
title('AMP');