Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

periodicreturns - Periodic total returns from total return prices

Syntax

TotalReturn = periodicreturns(TotalReturnPrices, Period)

Arguments

TotalReturnPrices

Number of observations (NUMOBS) by number of assets (NASSETS) matrix of total return prices for a given security. Column 1 contains MATLAB serial date numbers. The remaining columns contain total return price data.

Period

(Optional) Periodicity flag used to compute total returns:

'd' = daily values
'm' = monthly values

Description

TotalReturn = periodicreturns(TotalReturnPrices) calculates the daily total returns from a daily total return price series.

TotalReturn = periodicreturns(TotalReturnPrices, Period) calculates the total returns for a periodicity you specify from a daily total return price series.

TotalReturn is a NUMOBS-by-NASSETS matrix containing month-end dates and return values. Each row represents an observation. Column 1 contains month-end dates in MATLAB serial date number format. The remaining columns contain monthly return values.

See Also

totalreturnprice

  


Free Interactive Computational Finance CD

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