-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlotAll.m
More file actions
51 lines (32 loc) · 848 Bytes
/
PlotAll.m
File metadata and controls
51 lines (32 loc) · 848 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%
% Clear all variables and close all graphs
%
clear all
close all
%
% Get max_gflops from /proc/cpuinfo by reading the parameters
% set in file proc_parameters.m
%
proc_parameters
max_gflops = nflops_per_cycle * nprocessors * GHz_of_processor;
%
% Read in the first data set and plot it.
%
output_old
version_old = version;
plot( MY_MMult( :,1 ), MY_MMult( :,2 ), 'bo-.;OLD;' );
last = size( MY_MMult, 1 );
hold on
axis( [ 0 MY_MMult( last,1 ) 0 max_gflops ] );
xlabel( 'm = n = k' );
ylabel( 'GFLOPS/sec.' );
%
% Read in second data set and plot it.
%
output_new
version_new = version
title_string = sprintf("OLD = %s, NEW = %s", version_old, version_new);
plot( MY_MMult( :,1 ), MY_MMult( :,2 ), 'r-*;NEW;' );
title( title_string );
filename = sprintf( "compare_%s_%s", version_old, version_new );
print( filename, '-dpng' );