Line number | Message |
258 | The value assigned to variable 'n' might be unused. |
261 | Extra semicolon is unnecessary in END statement before newline. |
262 | Extra semicolon is unnecessary in END statement before newline. |
263 | Extra semicolon is unnecessary in END statement before newline. |
264 | Extra semicolon is unnecessary in END statement before newline. |
265 | Extra semicolon is unnecessary in END statement before newline. |
266 | Extra semicolon is unnecessary in END statement before newline. |
267 | Extra semicolon is unnecessary in END statement before newline. |
268 | Extra semicolon is unnecessary in END statement before newline. |
time | Calls | line |
---|
| | 255 | function [opts,output] = load_setting(opts,BXA)
|
| | 256 |
|
< 0.001 | 1 | 257 | m = length(BXA);
|
< 0.001 | 1 | 258 | n = sqrt(m);
|
| | 259 |
|
| | 260 | %% load the setting
|
0.006 | 1 | 261 | if ~isfield(opts,'maxit'); opts.maxit = 25000; end;
|
< 0.001 | 1 | 262 | if ~isfield(opts,'tol'); opts.tol = 1e-5; end;
|
0.004 | 1 | 263 | if ~isfield(opts,'gamma'); opts.gamma = (1+sqrt(5))/2; end;
|
0.004 | 1 | 264 | if ~isfield(opts,'beta'); opts.beta = m; end;
|
0.022 | 1 | 265 | if ~isfield(opts,'Y'); opts.Y = zeros(m+1); opts.Y(end,end)=1; end;
|
0.003 | 1 | 266 | if ~isfield(opts,'Z'); opts.Z = zeros(m+1); end;
|
0.003 | 1 | 267 | if ~isfield(opts,'print'); opts.print = 1; end;
|
0.006 | 1 | 268 | if ~isfield(opts,'scalar'); opts.scalar = 1; end;
|
| | 269 |
|
| | 270 |
|
0.006 | 1 | 271 | opts.scalar = (norm(BXA,'fro')*m);
|
0.001 | 1 | 272 | opts.scalar = 1;
|
| | 273 | % opts.scalar = m/norm(Q,'fro');
|
| | 274 | % opts.scalar = 1/(norm(Q,'fro')*m);
|
| | 275 | % opts.scalar = 1/norm(Q,'fro');
|
| | 276 |
|
0.003 | 1 | 277 | output.exitflag = 'not converged';
|
| | 278 | % % save the initial settings
|
0.002 | 1 | 279 | output.setting = opts; % save the initial settings
|
< 0.001 | 1 | 280 | end
|
Other subfunctions in this file are not included in this listing.