This is a static copy of a profile reportHome
camtarget (3 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:45 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graph3d/camtarget.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 |
32 | return | 3 | 0 s | 0% |  |
31 | a = get(ax,'cameratarget'); | 3 | 0 s | 0% |  |
30 | else | 3 | 0 s | 0% |  |
28 | if nargin==2 | 3 | 0 s | 0% |  |
27 | ax = arg1; | 3 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 52 |
Non-code lines (comments, blank lines) | 23 |
Code lines (lines that can run) | 29 |
Code lines that did run | 8 |
Code lines that did not run | 21 |
Coverage (did run/can run) | 27.59 % |
Function listing
time calls line
1 function a = camtarget(arg1, arg2)
2 %CAMTARGET Camera target.
3 % CT = CAMTARGET gets the camera target of the current
4 % axes.
5 % CAMTARGET([X Y Z]) sets the camera target.
6 % CTMODE = CAMTARGET('mode') gets the camera target mode.
7 % CAMTARGET(mode) sets the camera target mode.
8 % (mode can be 'auto' or 'manual')
9 % CAMTARGET(AX,...) uses axes AX instead of current axes.
10 %
11 % CAMTARGET sets or gets the CameraTarget or CameraTargetMode
12 % property of an axes.
13 %
14 % See also CAMPOS, CAMVA, CAMPROJ, CAMUP.
15
16 % Copyright 1984-2005 The MathWorks, Inc.
17 % $Revision: 1.10.4.2 $ $Date: 2008/05/23 15:35:29 $
18
19 % if nargout == 1
20 % a = get(gca,'cameratarget');
21 % end
22
3 23 if nargin == 0
24 a = get(gca,'cameratarget');
3 25 else
3 26 if length(arg1)==1 && ishghandle(arg1,'axes')
3 27 ax = arg1;
3 28 if nargin==2
29 val = arg2;
3 30 else
3 31 a = get(ax,'cameratarget');
3 32 return
33 end
34 else
35 if nargin==2
36 error('MATLAB:camtarget:WrongNumberArguments', 'Wrong number of arguments')
37 else
38 ax = gca;
39 val = arg1;
40 end
41 end
42
43 if ischar(val)
44 if(strcmp(val,'mode'))
45 a = get(ax,'cameratargetmode');
46 else
47 set(ax,'cameratargetmode',val);
48 end
49 else
50 set(ax,'cameratarget',val);
51 end
52 end
Other subfunctions in this file are not included in this listing.