| Datafeed Toolbox™ | ![]() |
D = fetch(H,S) D = fetch(H,S,Startdate,Enddate) D = fetch(H,S,Startdate,Enddate,P)
| H | Haver Analytics connection object created with the haver function. |
| S | Haver Analytics variable. |
| Startdate | MATLAB® string or date number indicating the startdate from which to retrieve data. |
| Enddate | MATLAB string or date number indicating the enddate of the date range. |
| P | A specified period. You can enter the period as:
|
fetch returns historical data via a Haver Analytics connection object.
Connect to the Haver Analytics daily demonstration database haverd.dat:
H = haver('d:\work\haver\data\haverd.dat')Return data for the variable FFED:
D = fetch(H,'FFED')
Return data for FFED from 01/01/1997 to 09/01/2007:
D = fetch(H,'FFED','01/01/1997','09/01/2007')
Return data for FFED, converted to monthly values, from 01/01/1997 to 09/01/2007:
D = fetch(H,'FFED','01/01/1997','09/01/2007','M')
haver.close, haver.get, haver.isconnection, haver, haver.info, haver.nextinfo
![]() | haver.close | haver.get | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |