This is a static copy of a profile report

Home

date2mjd (13 calls, 0.011 sec)
Generated 05-Aug-2011 13:00:34 using cpu time.
function in file /home/LeechJ/cbass_analysis/matutils/dateconv/date2mjd.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
tstr2mjdfunction10
determineIndicesfunction1
sunUpDownfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
22
mjd = date2jd(varargin{:}) - 2...
130.011 s100.0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
date2jdfunction130 s0%
Self time (built-ins, overhead, etc.)  0.011 s100.0%
Totals  0.011 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function22
Non-code lines (comments, blank lines)21
Code lines (lines that can run)1
Code lines that did run1
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function mjd = date2mjd(varargin)
2 %DATE2MJD Modified Julian day number.
3 %
4 % MJD = DATE2MJD(YEAR, MONTH, DAY, HOUR, MINUTE, SECOND) returns the
5 % modified Julian day number of the given date plus a fractional part
6 % depending on the day and time of day.
7 %
8 % Any missing MONTH or DAY will be replaced by ones. Any missing HOUR,
9 % MINUTE or SECOND will be replaced by zeros.
10 %
11 % If no date is specified, the current date and time is used. Gregorian
12 % calendar is assumed.
13 %
14 % Start of the MJD (modified Julian day) count is from 0 at 00:00 UTC 17
15 % November 1858 (Gregorian calendar).
16
17 % Author: Peter J. Acklam
18 % Time-stamp: 2002-03-03 12:52:13 +0100
19 % E-mail: pjacklam@online.no
20 % URL: http://home.online.no/~pjacklam
21
0.01 13 22 mjd = date2jd(varargin{:}) - 2400000.5;