I am unable to convert the logic of a MATLAB code to VBA.
Any input will be of help. The code is:
coeff1 = 1/(2*pi);
coeff2 = 1/(2*s);
coeff3 = pi/s;
u = 0.5 - rand();
out = -u*s;
outNext = out - (coeff1*sin(coeff3*out) + coeff2*out + u) ./ ...