Referring to a specific cell in Time series object in Matlab?

2 ビュー (過去 30 日間)
ARS
ARS 2012 年 4 月 3 日
Hi all,
My question is that how can I subtract two prices(numeric values) in Matlab. One value is in a row dated 1/1/2010(say 70496 in Matlab format)and column 'spotprice' in a time series object/table.
and
the other price is in another time series object/table in the 'forwardprice' column and in row dated 5/1/2010.
How to refer to these specific cells?
we can't use sql type command "where date=1/1/2010 in Matlab?
Anxiously waiting for responses.
Regards,
Ahmad.

採用された回答

Oleg Komarov
Oleg Komarov 2012 年 4 月 4 日
fts2mat(spotprice('01/01/2010')) - fts2mat(forwardprice('05/01/2010'))
  1 件のコメント
ARS
ARS 2012 年 4 月 4 日
Thanks Oleg.
Your answer helped.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInstallation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by