One formula in Matlab.

1 回表示 (過去 30 日間)
Artyom
Artyom 2012 年 7 月 17 日
Hi everyone. Is there any function in Matlab that can easily calculate such kind of formula (Y[i]-Y[i-1])/Y[i-1] ?

採用された回答

Walter Roberson
Walter Roberson 2012 年 7 月 17 日
No. However, you can use
diff(Y) ./ Y(1:end-1)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by