DATEPART Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: datepart.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Ian Howat (View more)

DATEPART script description:




Publisher review:
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.63yr =2007.53 Requirements: ยท MATLAB Release: R2006a
DATEPART is a Matlab script for Scientific/Engineering scripts design by Ian Howat. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
DATEPART - Extract decimal yr/month/day/hr/min/sec from a datenum.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5