Sampling theorem.m