This is a static copy of a profile reportHome
imuitools\private\imageDisplayParseInputs>parseParamValuePairs (1 call, 0.000 sec)
Generated 15-Mar-2007 12:02:01 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\images\imuitools\private\imageDisplayParseInputs.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
399 | end | 2 | 0 s | 0% |  |
372 | checkCoords(in{k+1},upper(prop... | 2 | 0 s | 0% |  |
371 | args.(prop_string) = in{k+1}; | 2 | 0 s | 0% |  |
370 | case {'XData','YData'} | 2 | 0 s | 0% |  |
367 | case 'InitialMagnification' | 2 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 0% | |
Children (called functions)
M-Lint results
Line number | Message |
356 | ERROR takes SPRINTF-like arguments directly. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 54 |
Non-code lines (comments, blank lines) | 21 |
Code lines (lines that can run) | 33 |
Code lines that did run | 10 |
Code lines that did not run | 23 |
Coverage (did run/can run) | 30.30 % |
Function listing
time calls line
348 function args = parseParamValuePairs(in,valid_params,num_pre_param_args,...
349 function_name)
350
1 351 if rem(length(in),2)~=0
352 eid = sprintf('Images:%s:oddNumberArgs',function_name);
353 msg = sprintf(...
354 'Function %s expected an even number of parameter/value arguments.',...
355 upper(function_name));
356 error(eid,msg)
357 end
358
1 359 for k = 1:2:length(in)
2 360 prop_string = iptcheckstrs(in{k}, valid_params, function_name,...
361 'PARAM', num_pre_param_args + k);
362
2 363 switch prop_string
2 364 case 'DisplayRange'
365 args.(prop_string) = checkDisplayRange(in{k+1});
366
2 367 case 'InitialMagnification'
368 args.(prop_string) = in{k+1};
369
2 370 case {'XData','YData'}
2 371 args.(prop_string) = in{k+1};
2 372 checkCoords(in{k+1},upper(prop_string),num_pre_param_args+k+1)
373
374 case {'WindowStyle'}
375 args.(prop_string) = in{k+1};
376 if ischar(in{k+1})
377 args.(prop_string) = iptcheckstrs(in{k+1}, {'docked','normal'},...
378 function_name, 'STYLE',...
379 num_pre_param_args + k + 1);
380 else
381 eid = sprintf('Images:%s:invalidWindowStyle',function_name);
382 error(eid,'%s',...
383 'STYLE must be either ''docked'' or ''normal''.');
384
385 end
386
387 if (~desktop('-inuse') || ~isJavaFigure) && strcmp(args.WindowStyle,'docked')
388 args.WindowStyle = 'normal';
389 wid = sprintf('Images:%s:unableToDock',mfilename);
390 warning(wid, '%s', 'Unable to dock figure.');
391 end
392
393 otherwise
394 eid = sprintf('Images:%s:unrecognizedParameter',function_name);
395 error(eid,'%s','The parameter, %s, is not recognized by %s',...
396 prop_string,function_name);
397
398 end
2 399 end
400
401 %------------------------------------------------
Other subfunctions in this file are not included in this listing.