Code covered by the BSD License  

Highlights from
FDATENUM_etc

3.0

3.0 | 2 ratings Rate this file 6 Downloads (last 30 days) File Size: 12.79 KB File ID: #4011

FDATENUM_etc

by Zhigang Xu

 

26 Sep 2003 (Updated 30 Sep 2003)

A package offers much fast versions for datenum, datevec, and str2num.

| Watch this File

File Information
Description

When the input strings to MATLAB functions of DATENUM, DATEVEC,and STR2NUM are very large, these functions are very intolerably slow (try for example the datenum with 100 yrs of hourly date string). FDATENUM, FDATEVEC, FSTR2NUM are fast counterparts of these MATLAB functions. The fastness owns a divide-and-conquer strategy, as comes as another function in this package, DIVCONQ. See FDATE_DEMO for a demonstration and the documents in the individual functions.

MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
08 Nov 2006 Brent Haslem

Found fstr2num to be very fast compared to the original for the large cell arrays that I need to convert. I've been looking for a way to do something like this for awhile.

12 Oct 2011 Eran

I tested fstr2num with a large string (>1,000,000) of numbers such as: 11 44 44 11 33 13 33 22 11 44. Separated by a single space. str2num takes 3-4 seconds to convert them to numeric. fstr2num took less than a second, but it produced many more numbers than actually are, probably breaking some of the numbers to single numbers (1 2 3 4).

In short, it doesn't work well. hope you can fix it because the world needs it!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
strings Zhigang Xu 22 Oct 2008 07:08:07
fdatenum Zhigang Xu 22 Oct 2008 07:08:07
fdatevec Zhigang Xu 22 Oct 2008 07:08:07
fdate_demo Zhigang Xu 22 Oct 2008 07:08:07
divconq Zhigang Xu 22 Oct 2008 07:08:07
fstr2num Zhigang Xu 22 Oct 2008 07:08:07
divconq Brian 08 Nov 2011 07:36:53

Contact us at files@mathworks.com