This is a static copy of a profile reportHome
imread>parse_inputs (1 call, 0.000 sec)
Generated 15-Mar-2007 12:01:56 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\matlab\imagesci\imread.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
imread | M-function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
338 | filename = ''; | 1 | 0.000 s | 79.2% |  |
341 | msg = ''; | 1 | 0.000 s | 8.0% |  |
339 | format = ''; | 1 | 0.000 s | 7.1% |  |
340 | extraArgs = {}; | 1 | 0.000 s | 5.7% |  |
354 | filename = varargin{1}; | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
Children (called functions)
No childrenM-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 42 |
Non-code lines (comments, blank lines) | 18 |
Code lines (lines that can run) | 24 |
Code lines that did run | 8 |
Code lines that did not run | 16 |
Coverage (did run/can run) | 33.33 % |
Function listing
time calls line
336 parse_inputs(varargin)
337
< 0.01 1 338 filename = '';
< 0.01 1 339 format = '';
< 0.01 1 340 extraArgs = {};
< 0.01 1 341 msg = '';
342
343 % Parse arguments based on their number.
1 344 switch(nargin)
1 345 case 0
346
347 % Not allowed.
348 msg = 'Too few input arguments.';
349 return;
350
1 351 case 1
352
353 % Filename only.
1 354 filename = varargin{1};
355
356 otherwise
357
358 % Filename and format or other arguments.
359 filename = varargin{1};
360
361 % Check whether second argument is a format.
362 if (ischar(varargin{2}))
363 fmt_s = imformats(varargin{2});
364 else
365 fmt_s = struct([]);
366 end
367
368 if (~isempty(fmt_s))
369 % The argument matches a format.
370 format = varargin{2};
371 extraArgs = varargin(3:end);
372 else
373 % The argument begins the format-specific parameters.
374 extraArgs = varargin(2:end);
375 end
376
377 end