HW2: Last measurements from rome and small fixes
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 533 KiB After Width: | Height: | Size: 240 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 374 KiB After Width: | Height: | Size: 142 KiB |
@@ -2,10 +2,10 @@
|
||||
Q = [20, 23, 25, 27];
|
||||
p_values = [1, 2, 3, 4, 5, 6, 7];
|
||||
measurements = [
|
||||
40, 42, 62.87, 123.25, 158.81, 233.52, NaN; % Q=20
|
||||
285, 331.7, 465.5, 956.7, 1364.5, 1755.5, NaN; % Q=23
|
||||
1174, 1354.5, 1940.4, 3994.2, 5373.8, 7139.9, NaN; % Q=25
|
||||
4761.5, 5952.5, 8154.7, 15910, 21440, 27800, NaN; % Q=27
|
||||
40, 42, 62.87, 123.25, 158.81, 233.52, 325.23 ; % Q=20
|
||||
285, 331.7, 465.5, 956.7, 1364.5, 1755.5, 2108.1 ; % Q=23
|
||||
1174, 1354.5, 1940.4, 3994.2, 5373.8, 7139.9, 8353.4 ; % Q=25
|
||||
4761.5, 5952.5, 8154.7, 15910, 21440, 27800, 33298 ; % Q=27
|
||||
];
|
||||
% ToDo: Add the measurements
|
||||
|
||||
@@ -30,7 +30,7 @@ xticklabels(1:length(p_values));
|
||||
% Plot 2: One line for each p
|
||||
subplot(1, 2, 2);
|
||||
hold on;
|
||||
for j = 1:length(p_values) - 1 % ToDo: Remove -1 for p=7
|
||||
for j = 1:length(p_values)
|
||||
plot(Q, measurements(:, j), '-o', 'DisplayName', sprintf('p=%d', j));
|
||||
end
|
||||
hold off;
|
||||
@@ -43,4 +43,4 @@ grid on;
|
||||
% Enhance appearance
|
||||
% sgtitle('Measurement Results');
|
||||
|
||||
print(gcf, 'AllMeasurements', '-dpng', '-r600');
|
||||
print(gcf, 'AllMeasurements', '-dpng', '-r300');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
% Data for new measurements
|
||||
p_values = [1, 2, 3, 4, 5, 6]; % ToDo: add 7th p and time
|
||||
p_values = [1, 2, 3, 4, 5, 6, 7];
|
||||
measurements = [
|
||||
4761.5, 2957.5, 1940.4, 1985.2, 1364.5, 901.1
|
||||
4761.5, 2957.5, 1940.4, 1985.2, 1364.5, 901.1, 627.55
|
||||
];
|
||||
|
||||
% Create the figure window
|
||||
@@ -22,4 +22,4 @@ ticks = min(p_values):max(p_values);
|
||||
xticks(ticks);
|
||||
|
||||
% Save the plot
|
||||
print(gcf, 'FixSizeMeasurements', '-dpng', '-r600');
|
||||
print(gcf, 'FixSizeMeasurements', '-dpng', '-r300');
|
||||
|
||||
Reference in New Issue
Block a user