Last value of Moving Average in single command
Show older comments
Hi,
I have A = rand(10,1). I am calculating an exponential moving average, B = movavg(A,'exponential',2). I only want the last value of B, i.e. C = B(end).
Is there any way to do this in a single command?
Thank you!
IP
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics and Optimization in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!