Software, modeling, and simulation engineer. Former Senior Applications Engineer at MathWorks. Professional interests include: digital signal processing, statistical signal processing, control system design, dynamic system modeling and simulation, data analysis and visualization.

Professional Interests

Digital Signal Processing, Digital Communication Systems, Image and Video Processing, Audio Processing, Model-Based Design, Embedded Systems, Adaptive Filtering Algorithms, Control Systems, Statistical Signal Processing, Statistical Process Control, Discrete Event Simulation

I believe you are always rounding up to the next highest integer rather than rounding to the nearest integer. In other words, you are using the ceil() function, not the round() function.