for loop to calculate the value of a recurrence relation
75 views (last 30 days)
chafah zachary on 7 Mar 2014
A recurrence relation can be used to model feedback in a system. Given the following recurrence relation, the x vector, and the initial value of y at t=1, write MATLAB code to calculate the y-values corresponding to first 9 x-values. Store the result in the vector y.
the recurrence relation is as seen below
this is my attempt
x = [0 0.39 0.78 1.17 1.57 1.96 2.35 2.74 3.14]; y(1) = 2;
for x=1:0.39:9 t=2:9
where am I wrong?