matlab code for discrete equation
rations whenever possible. Example: Instead of looping through each step, use filter functions for linear difference equations. ```matlab % Define coefficients b = [1, -a1, -a2]; % Denominator coefficients a = 1; % Numerator coefficient (for input) % Input sequence x = ones(1, N