Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function that moveAve that takes two inputs: a numerical vector (vecIn) and a number(l) corresponding to the length of the exponential moving average.
Write a function that moveAve that takes two inputs: a numerical vector (vecIn) and a number(l) corresponding to the length of the exponential moving average. The output is a vector containing the exponential moving average values. The first value in your exponential moving average should be the simple average of the first l values of vecIn.
Please write in Matlab format!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started