SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
aircrack 1.0RC1
58,800
Scary Maze
34,881
Advance Backup 2.0
28,317
QuickPlay 3.8.4
25,257
Free Youtube
Downloader

23,987
FFmpeg
20,415
Referrer
verification/validat
ion Javascript

19,173
szewo referer logger
3.0

19,043
Netcat 0.7.1
18,881
vBulletin 3.7.0b4
17,833
Home / Scripts / Scientific/Engineering

DATEPART




Downloads: 81  Add to download basket  Tell us about an update
User Rating:
Rated by:
Good (3.2/5)
17 user(s)
Developer:

License / Price:
Platforms:

Databases:

Language:

Last Updated:

Category:
Ian Howat | More scripts
Freeware 
Windows / Linux / Mac OS / BSD / Solaris
N/A
Matlab
September 26th, 2007, 08:19 GMT
C: \ Scientific/Engineering

 Read user reviews (0)  Add a review  Refer to a friend  Subscribe

 

DATEPART description

 

DATEPART - Extract decimal yr/month/day/hr/min/sec from a datenum.

X = DATEPART(DATE,'part') returns the date 'part' (year, month,day, hour, minute or second) of the datenum date with the decimal equivalent of the trailing date parts in the units of 'part'. DATE can be scalar, vector or array and X will be of the some size and shape.

[X1,X2,...] = DATEPART(DATE,'part1','part2',...) returns each decimal value corresponding to each part input argument.

Acceptable string specifiers for 'part' are:
Year: 'year','yr','years','yrs'
Month: 'month','mn','months','mns'
Day: 'day','days'
Hour: 'hour','hours','hr','hrs'
Minute: 'minutes','minutes','min','mins'
Second: 'second','seconds','sec','secs'

Examples:
>> A = datenum('14-Jul-2007 15:05:12')
>> datepart(A,'min')
ans =
5.2000
>> floor(datepart(A,'min'))
ans =
5
>> format bank
>> datepart(A,'year')
ans =
2007.53
>> [day,yr] = datepart(A,'day','year')
day =
14.63
yr =
2007.53

Requirements:

· MATLAB Release: R2006a



TAGS:

matlab DATEPART | DATEPART scientific | scientific engineering | | |

Related downloads IT News Popular downloads New additions   Latest reviews  
dx2mat
dx2mat is a module for the IBM Visualization Data Explorer.
Tape Toolbox
Tape Toolbox - Read, write, and manipulate tape drives from MATLAB under Windows.
example windows message handler
example windows message handler - windows message handler
Quran Comparison & Search-requires Matlab
Quran Comparison & Search-requires Matlab compares 10 translation of the quran with search
NCEP2GFDL
NCEP2GFDL - Concatenate NCEP reanalysis files into one GFDL-format netCDF file.


HTML code for linking to this page:


Go to top



SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM