Frequency response of rational object and
sparameters object from a file and use
rfparam to extract the parameters.
S = sparameters('passive.s2p'); S21 = rfparam(S,2,1);
Fit a rational function to the data by using
freq = S.Frequencies; fit_data = rationalfit(freq,S21);
Compute the frequency response by using the
freqresp method and plot the magnitude and angle of the frequency response.
[resp,freq] = freqresp(fit_data,freq); plot(freq/1e9,20*log10(abs(resp)))
inputfreq— Input frequencies
Input frequencies, specified as a vector of positive frequencies in Hz.
response— Frequency response values
Frequency response values, returned as a vector.
outputfreq— Frequency values same as input frequencies
Frequency values same as input frequencies, returned as a vector.