I want to design butterworth filter in matlab only based on order of the filter and the cutoff frequency in Hz.
the syntax is for returning the ABCD matrix of statespace is
[A,B,C,D] = butter(____)
I tried doing below for 2nd order and 30Hz cut off
[A, B, C, D] = butter(2,30)
But i get an error saying :
Error using butter (line 41) The cutoff frequencies must be within the interval of (0,1).
Any help will be appriciated