フィルターのクリア

How to multiply with a factor with time series data

7 ビュー (過去 30 日間)
Saleem Sarwar
Saleem Sarwar 2015 年 10 月 2 日
回答済み: Thorsten 2015 年 10 月 2 日
I have to compute S by applying following formula = S = 1000/CN -10; where S and CN are daily time series data. By applying this script, matlab is only computing the first value correctly, whereas all other values I am getting -10 answer that is not correct. CN is 68, 78, 90, 90 , 78 etc for the days in the year.
Could you please suggest me code for this?

採用された回答

Thorsten
Thorsten 2015 年 10 月 2 日
CN = [68, 78, 90, 90, 78];
S = 1000./CN - 10;

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by