Datenum
UTC time (universal time convention) is used in ANSI-C standard for defining time. This is measured in seconds since 1970, at the Prime Meridian.The UTC2Datenum_array function takes a M x 1 array of UTC time values and converts it to a M x 1 array of Matlab serial Time values.This code is derived...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Convert Time Array to a Datenum Array Download |
The original datestr and datenum are powerful, but slow.mdatestr, mdatenum only convert date between string with format 'yyyy-mm-dd' and series value (with Excel type).They cost 20% time of datestr and datenum(with specific format).% usage% mdatenum('2010-10-30') % ans = 734421% mdatestr(73421) %...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): mdatestr, mdatenum: A simple alternative of datestr and datenum Download |
Purpose: Returns the modification date (datenum) of a fileUsage: file_datenum = filedatenum('myfile.dat')Author: Charles Plum, Varolii Corp, 21 August 2009Not elegant but it works ...Had to check for files in a loop ...written in haste but really does the trick ...could not find a similar Matlab...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): filedatenum Download |
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,...] =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): DATEPART Download |
Rounds off a datenum to the nearest second, minute, hour, day, month or year. Zip file includes "units.m" (file 4093) by Henning Ressing.Example: datenum_round_off(now, 'minute')
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Round off dates and times Download |
moonpos calculates the moon position using the method in the bookAstronomical Algorithms by Jean Meeus, Chapter 45, pp 307 - 313. Thealgorithm used is accurate to about 10 arcsec in longitude and 4 arcsecin latitude according to the book, although the time range is notmentioned. The periodic...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (46): Moon Position Download |
This function gives the datenum 'time' and the matrix 'M' of theradiosoundings read in the input file, obtained as ascii text by'cut and paste' from 'http://weather.uwyo.edu/upperair/sounding.html'.The input file can contain an arbitrary number of radiosoundings.The 'station_id' is the number of...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): read_RWS Download |
DATESTR2NUM - Fast conversion of DATESTR to DATENUMThe builtin DATENUM command is very powerful, but if the input is known to be valid and formatted exactly, a specific MEX can be much faster:For single strings DateStr2Num takes > [734318.916122685, 734318.916122685] Equivalent Matlab command...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): DateStr2Num Download |
ASCII2XYZ reads in a raster text file in ARC ASCII format and converts values to a m x 3 matrix of x, y, a z values.This code is mostly vectorized and performs well with reasonably large files (see example below).%read in a 25 MB filea=dir('foo.txt')a = name: 'foo.txt' date: '17-Oct-2008...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): ascii2xyz Download |
UIGETDATE date selection dialog box T = UIGETDATE(D) displays a dialog box in form of a calendar UIGETDATE expects serial date number or standard MATLAB Date format (see DATESTR) as input data und returns serial date number for the selected date and time. UIGETDATE by itself uses the current...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): UIGETDATE Download |
It uses a Log Pearson Type-3 distribution for estimating quantiles.NaN need to be removed in the dataset. If any years have missing data, it will still assume to include that year as part of the sample size-- as stipulated in 17B guidelines. An exmaple MAT file is provided for the user to test. A...
Platforms: Windows, Mac, *nix, Matlab, Solaris
License: Freeware | Download (57): Flood Flow Frequency Analysis 1-6-2009 Download |
As I could find no built-in function nor reliable contribution to achieve that, I had no choice but to write my own, leveraging the GregorianCalendar Java class.Usage is quite simple: targetDST = TimezoneConvert( dn, fromTimezone, toTimezone )The datenum dn corresponds to the datetime you want to...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (38): Convert between world time zones with daylight saving times Download |
>> help timeidx TIMEIDX returns numeric index given time string. D = TIMEIDX(T) returns index value in relative days which is suitable for DATENUM math. To work in hours multiply by 24, for seconds multiply by 24*3600, etc. T can be a time string (DD:HH:MM:SS) where DD, HH and MM are...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Time index Download |
This program places dates on time axis as DATETICK and works with ZOOM and PAN as DATETICKZOOM by Christophe Lauwerys. But, it also shows the full date after zooming or panning by using the ticks and time-axis label. So, if you zoom in down to second, you won't loose "when" you are.The input...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (50): tlabel.m (Sep 2009) Download |
cThe Standard for the Exchange of Earthquake Data (SEED) is an international standard format for the exchange of digital seismological data. SEED was designed for use by the earthquake research community, primarily for the exchange between institutions of unprocessed earth motion data. It is a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Read miniSEED file Download |
LOWESS- Locally Weighted Scatterplot Smoothing that does not require the statistical toolbox in matlab.This regression will work on linear and non-linear relationships between X and Y.Modifications:12/19/2008 - added upper and lower LOWESS smooths. These additional smooths show how the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 30.72 KB | Download (41): LOWESS, Locally Weighted Scatterplot Smoothing for linear and non-linear data (enhanced) Download |
The submission presents (almost complete) hourly download statistics for all FEX submissions and contributors over the week of November 16-22, 2007.File fex.txt has 'tall' layout, and can be fetched into Matlab workspace with[t,id,rank,file,fcat,down] =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 12.28 MB | Download (39): A week on File Exchange Download |
DateConvert: Simple but fast date conversionDateConvert converts the DATESTR(0) format to a date vector or serial date number and backwards.Matlab's DATENUM, DATEVEC and DATESTR accept a variety of inputs, but in consequence they are slow. If the input format is exactly known, the conversion can...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): DateConvert Download |
The Standard for the Exchange of Earthquake Data (SEED) is an international standard format for the exchange of digital seismological data. SEED was designed for use by the earthquake research community, primarily for the exchange between institutions of unprocessed earth motion data. It is a...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Read and write miniSEED file Download |
** Update: The archive now includes a new function setDateAxes which can be used like SET to set the properties of date axes (such as XLim) and have the tick labels update automatically. For example,setDateAxes(gca, 'XLim', [datenum('July 1, 2008') datenum('August 1, 2008')])** Update:...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Intelligent Dynamic Date Ticks Download |