Zero-forcing balanced MATLAB simulation program