One formula in Matlab.

3 次查看(过去 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 CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by