matlab,feedback-loop

Assuming you have your input (FM) signal in a vector U, then something along these lines will work if your functions act on one sample at a time. N = length(U); v = 0; % initial value for v for n = 1:N x = U(n) * v; y =...