Update BlockRIP
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
clc;
|
||||
clear;
|
||||
|
||||
% epi = 0;
|
||||
% epi = 0.1;
|
||||
% epi = 0.5;
|
||||
epi = 1;
|
||||
CONTOURF = false;
|
||||
|
||||
filename = strcat("FAR_block_sparsity_phase_epi_", string(epi), ".mat");
|
||||
load(filename);
|
||||
|
||||
figure;
|
||||
x_range = 1:size(result, 2);
|
||||
y_range = 1:size(result, 1);
|
||||
|
||||
if CONTOURF
|
||||
handler = contourf(x_range, y_range, result);
|
||||
else
|
||||
handler = pcolor(x_range, y_range, result);
|
||||
shading interp;
|
||||
colorbar;
|
||||
xlim([1, size(result, 2)]);
|
||||
ylim([1, size(result, 1)]);
|
||||
box on;
|
||||
end
|
||||
|
||||
ax = gca;
|
||||
grid(ax, 'on');
|
||||
set(ax, 'Visible', 'on');
|
||||
|
||||
pt = block_phase_transition_2(128, 4);
|
||||
l = line(1:size(pt), pt);
|
||||
l.Color = "w";
|
||||
l.LineWidth = 5;
|
||||
|
||||
lgd = legend("", "Theoretical curve");
|
||||
set(lgd, 'Location', 'southeast');
|
||||
set(lgd, 'TextColor', 'white');
|
||||
set(lgd, 'Box', 'off');
|
||||
set(lgd, 'Color', 'none');
|
||||
|
||||
xlabel("Number of targets ($K$)", 'Interpreter', 'latex');
|
||||
ylabel("Number of measurement ($n$)", 'Interpreter', 'latex');
|
||||
|
||||
% ax.XDisplayLabels = nan(size(ax.XDisplayData));
|
||||
% ax.YDisplayLabels = nan(size(ax.YDisplayData));
|
||||
% ax.ColorbarVisible = 'on';
|
||||
% ax.GridVisible = 'off';
|
||||
% ax.Colormap = parula(100);
|
||||
|
||||
grid on;
|
||||
Reference in New Issue
Block a user