This is a static copy of a profile reportHome
@timer\private\getSettableValues (2 calls, 0.000 sec)
Generated 15-Mar-2007 12:01:50 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\iofun\@timer\private\getSettableValues.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
timer.set | M-function | 2 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
15 | propnames = []; | 2 | 0.000 s | 100.0% |  |
25 | end | 2 | 0 s | 0% |  |
24 | end | 2 | 0 s | 0% |  |
23 | props{objnum} = get(obj.jobjec... | 2 | 0 s | 0% |  |
21 | end | 2 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
Children (called functions)
M-Lint results
Line number | Message |
23 | Array 'props' might be grown using indexing. Consider preallocating for speed. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 25 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 10 |
Code lines that did run | 10 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function [propnames,props] = getSettableValues(obj)
2 %getSettableValues gets all the settable values of a timer object array
3 %
4 % getSettableValues(OBJ) returns the settable values of OBJ as a list of settable
5 % property names and a cell array containing the values.
6 %
7 % See Also: TIMER/PRIVATE/RESETVALUES
8
9 % RDD 1-18-2002
10 % Copyright 2001-2002 The MathWorks, Inc.
11 % $Revision: 1.2 $ $Date: 2002/03/14 14:35:13 $
12
2 13 objlen = length(obj);
14
< 0.01 2 15 propnames = [];
16 % foreach valid timer object...
2 17 for objnum=1:objlen
2 18 if isJavaTimer(obj.jobject(objnum)) % valid java object found
2 19 if isempty(propnames) % if settable propnames are not yet known, get them from set
2 20 propnames = fieldnames(set(obj.jobject(objnum)));
2 21 end
22 % the the settable values of the valid timer object
2 23 props{objnum} = get(obj.jobject(objnum),propnames);
2 24 end
2 25 end