This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
linkaxes>local_is2Dsubfunction3
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
32
return
30 s0%
31
a = get(ax,'cameratarget');
30 s0%
30
else
30 s0%
28
if nargin==2
30 s0%
27
ax = arg1;
30 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function52
Non-code lines (comments, blank lines)23
Code lines (lines that can run)29
Code lines that did run8
Code lines that did not run21
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.