Is there a way to vectorize code of the same form as what I have below?
for k=1:length(channel_cuttoffs)
[b a] = butter(5,channel_cuttoffs(k));
pulse = filtfilt(b,a,pulse);
eyediagram(downsample(pulse,10),3)
end
pulse
is 10000x1 and channel_cuttoffs
is 1x5.