This is a static copy of a profile reportHome
automesh (606 calls, 0.160 sec)
Generated 05-Nov-2014 07:52:39 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/polyfun/automesh.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
xyzvchk | function | 417 |
xyzchk | function | 189 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
10 | if all(cellfun(@isvector,varar... | 606 | 0.110 s | 68.7% |  |
9 | tf = false; | 606 | 0.020 s | 12.5% |  |
All other lines | | | 0.030 s | 18.8% |  |
Totals | | | 0.160 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 15 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 5 |
Code lines that did run | 2 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 40.00 % |
Function listing
time calls line
1 function tf = automesh(varargin)
2 %AUTOMESH returns true if the inputs should be passed to meshgrid.
3 % AUTOMESH(X,Y,...) returns true if all the inputs are vectors and the
4 % orientations of all the inputs are not the same.
5
6 % Copyright 1984-2005 The MathWorks, Inc.
7 % $Revision: 1.8.4.1 $ $Date: 2005/12/12 23:26:21 $
8
0.02 606 9 tf = false;
0.11 606 10 if all(cellfun(@isvector,varargin))
11 % Location of non-singleton dimensions
12 ns = cellfun(@(x)size(x)~=1, varargin, 'UniformOutput', false);
13 % True if not all inputs have the same non-singleton dimension.
14 tf = ~isequal(ns{:});
15 end
Other subfunctions in this file are not included in this listing.