This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Financial time series subtraction


newfts = tsobj_1 - tsobj_2
newfts = tsobj - array
newfts = array - tsobj


tsobj_1, tsobj_2

A pair of financial time series objects .


A 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.


minus is an element-by-element subtraction of the components.

newfts = tsobj_1 - tsobj_2 subtracts financial time series objects. If an object is to be subtracted from another object, both objects must have the same dates and data series names, although the order need not be the same. The order of the data series, when one financial time series object is subtracted from another, follows the order of the first object.

newfts = tsobj - array subtracts an array element by element from a financial time series object.

newfts = array - tsobj subtracts a financial time series object element by element from an array.

Introduced before R2006a

Was this topic helpful?