The Signal Processing Toolbox offers two functions to design an equiripple filter with the Parks- McClellan algorithm: firpmord and firpm. The first function, firpmord, determines the minimum filter order necessary to meet the given design requirements. The second function, firpm, designs the actual filter.