I want to design a Butterworth filter in Matlab to get values of magnitude and phase after filtration from normal sine wave
[fs=1000;
t = 0:1/fs:0.16;
x = sin(2*pi*50*t);
plot(t,x)]
and I'm not sure if that's even possible.
Can you filter any signal you want or just a random one and only things you can determine are cutoff frequency and data sampling?
If yes, are there any other IIR filters that allow you filter sine wave signal?