| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
TotalReturn = periodicreturns(TotalReturnPrices, Period)
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:
|
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.
![]() | peravg | plot | ![]() |
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 |