| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Datafeed Toolbox |
| Contents | Index |
| Learn more about 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.
D = fetch(H,S) returns data for the Haver Analytics variable S, using the connection object H.
D = fetch(H,S,Startdate,Enddate) returns data for the Haver Analytics variable S, using the connection object H, between the dates Startdate and Enddate.
D = fetch(H,S,Startdate,Enddate,P) returns data for the Haver Analytics variable S, using the connection object H, between the dates Startdate and Enddate, in time periods specified by P.
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 | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |