I know how to create and apply a lowpass filter with a given cutoff-frequency on an audio input-file by using the functions butter and filter. Now I want to increase the cutoff-frequency with time to create the well-known "filter-sweep effect". My naive approach would be to loop over the audio vector and apply the filter for each sample (or group of samples), but this seems very inefficient. What is the "correct" of accomplishing this in MATLAB?
PS. By the title, it seems this question is similar, but in my opinion it doesn't answer my specific question.