Documentation Center

  • Trial Software
  • Product Updates

power

Financial time series power

Syntax

newfts = tsobj .^ array
newfts = array .^tsobj
newfts = tsobj_1 .^ tsobj_2

Arguments

tsobj

Financial time series object.

array

Scalar value or array with the number of rows equal to the number of dates in tsobj and the number of columns equal to the number of data series in tsobj.

tsobj_1, tsobj_2

Pair of financial time series objects.

Description

newfts = tsobj .^ array raises all values in the data series of the financial time series object tsobj element by element to the power indicated by the array value. The results are stored in another financial time series object newfts. The newfts object contains the same data series names as tsobj.

newfts = array .^ tsobj raises the array values element by element to the values contained in the data series of the financial time series object tsobj. The results are stored in another financial time series object newfts. The newfts object contains the same data series names as tsobj.

newfts = tsobj_1 .^ tsobj_2 raises the values in the object tsobj_1 element by element to the values in the object tsobj_2. The data series names, the dates, and the number of data points in both series must be identical. newfts contains the same data series names as the original time series objects.

See Also

| | |

Was this topic helpful?