This is a static copy of a profile report

Home

campos (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/campos.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,'cameraposition');
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 = campos(arg1, arg2)
2 %CAMPOS Camera position.
3 % CP = CAMPOS gets the camera position of the current
4 % axes.
5 % CAMPOS([X Y Z]) sets the camera position.
6 % CPMODE = CAMPOS('mode') gets the camera position mode.
7 % CAMPOS(mode) sets the camera position mode.
8 % (mode can be 'auto' or 'manual')
9 % CAMPOS(AX,...) uses axes AX instead of current axes.
10 %
11 % CAMPOS sets or gets the CameraPosition or CameraPositionMode
12 % property of an axes.
13 %
14 % See also CAMTARGET, CAMVA, CAMPROJ, CAMUP.
15
16 % Copyright 1984-2005 The MathWorks, Inc.
17 % $Revision: 1.10.4.2 $ $Date: 2008/05/23 15:35:27 $
18
19 % if nargout == 1
20 % a = get(gca,'cameraposition');
21 % end
22
3 23 if nargin == 0
24 a = get(gca,'cameraposition');
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,'cameraposition');
3 32 return
33 end
34 else
35 if nargin==2
36 error('MATLAB:campos: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,'camerapositionmode');
46 else
47 set(ax,'camerapositionmode',val);
48 end
49 else
50 set(ax,'cameraposition',val);
51 end
52 end

Other subfunctions in this file are not included in this listing.