Code covered by the BSD License
23 Jul 2001
A collection of functions, scripts, & Simulink models useful for designing and analyzing RF systems
% ROUNDTO Round the input to a specified resolution
% [Y] = ROUNDTO (X, Resolution) rounds X to Resolution.
function [Y] = roundto (X, Resolution)
Y = round (X / Resolution) * Resolution;