|
1 | | -function T = dataprof(frec, fmin, pdim, options) |
| 1 | +%function T = dataprof(frec, fmin, pdim, options) |
| 2 | +function T = dataprof(frec, fmin) |
2 | 3 | % To be implemented. |
3 | 4 |
|
4 | 5 | delsame = 0; |
|
44 | 45 |
|
45 | 46 | T = mean(T, 3); |
46 | 47 |
|
47 | | -sol = textread('solvers', '%s'); |
| 48 | +fid = fopen('solvers','r'); |
| 49 | +C = textscan(fid, '%s', 'Delimiter', '\n'); |
| 50 | +fclose(fid); |
| 51 | +sol = C{1}; |
48 | 52 | for is = 1:ns |
49 | 53 | sol{is} = regexprep(sol{is}, '_4test', ''); |
50 | 54 | %sol{is} = regexprep(sol{is}, 'newuoa', 'NEWUOA'); |
|
116 | 120 |
|
117 | 121 | xlabel('$\log_2(\alpha), \quad \alpha = \mathrm{NF}/\mathrm{NF}_{\min}$', 'fontsize', fontsize, 'interpreter', 'latex'); |
118 | 122 | ylabel('$\pi_s(\alpha)$', 'fontsize', fontsize, 'interpreter', 'latex'); |
119 | | -xlabh = get(gca,'XLabel'); |
| 123 | +%xlabh = get(gca,'XLabel'); |
120 | 124 | %set(xlabh,'Position',get(xlabh,'Position') - [0 .0175 0]) |
121 | 125 | set(gca,'FontSize',fontsize); |
122 | 126 |
|
|
146 | 150 | clf; |
147 | 151 | hfig=figure(2); |
148 | 152 | for is = 1:ns |
149 | | - [xs, ys] = stairs([1:1.2*M]/(n+1), D(is, :)); |
| 153 | + [xs, ys] = stairs((1:1.2*M)/(n+1), D(is, :)); |
150 | 154 | plot(xs, ys, lines{is}, 'Color', colors{is}, 'Linewidth',linewidth); |
151 | 155 | hold on; |
152 | 156 | end |
|
164 | 168 |
|
165 | 169 | xlabel('$\beta = \mathrm{NF}/(n+1)$', 'fontsize',fontsize, 'interpreter', 'latex'); |
166 | 170 | ylabel('$\delta_s(\beta)$', 'fontsize', fontsize, 'interpreter', 'latex'); |
167 | | -xlabh = get(gca, 'XLabel'); |
| 171 | +%xlabh = get(gca, 'XLabel'); |
168 | 172 | %set(xlabh,'Position',get(xlabh,'Position') - [0 .0175 0]) |
169 | 173 | set(gca, 'FontSize', fontsize); |
170 | 174 |
|
|
0 commit comments