How to multiply with a factor with time series data

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개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2015년 10월 2일

답변:

2015년 10월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by