Financial Time Series    
fts2ascii

Write elements of time series data into an ASCII file

Syntax

Arguments

filename
Name of an ASCII file
tsobj
Financial time series object
dates
Column vector containing dates
data
Column-oriented matrix. Each column is a series.
colheads
(Optional) Cell array of column headers (names); first cell must always be the one for the dates column. colheads will be written to the file just before the data.
desc
(Optional) Description string, which will be the first line in the file.
exttext
(Optional) Extra text. A string written after the description line (line 2 in the file).

Description

stat = fts2ascii(filename, tsobj, exttext) writes the financial time series object tsobj into an ASCII file filename. The data in the file will be tab-delimited.

stat = fts2ascii(filename, dates, data, colheads, desc, exttext) writes into an ASCII file filename the dates and data contained in the column vector dates and the column-oriented matrix data. dates will be the first column, and columns of data will be the subsequent ones. The data in the file will be tab-delimited.

stat indicates whether file creation is successful (1) or not (0).

See Also

ascii2fts


 freqstr fts2mtx