not sure about rc filter but FIR and butterworth filter can be designed by the help of built in function fir1,Filter.
b = fir1(48,wc);
for butterworth you use butter(L).
[H,w] = freqz(b,1);
and you can design simple filter by