rfinterp1
Interpolate network parameter data at new frequencies
Description
interpolates the network parameter data in objnew
= rfinterp1(objold
,newfreq
)objold
at the specified frequencies, newfreq
, storing
the results in objnew
.
rfinterp1
uses the MATLAB® function interp1
to
interpolate each individual (i,j)
parameter of
objold
to the new frequencies.
Note
If any value of the specified frequency is outside of the
range specified by objold.Frequencies
,
then rfinterp1
function inserts
NaNs
into
objnew
for those frequency
values.
also interpolates the network data, but if any of the frequency values
you specify in objnew
= rfinterp1(___,'extrap')newfreq
are above the final
frequency of the network parameter object,
objold.Frequencies(end)
, then the function
extrapolates flat using the final value of the network parameter data
objold.Parameters(:,:,end)
. If any of the
frequency values you specify in newfreq
are below
the first frequency of the network parameter object,
objold.Frequencies(1)
, then the function
extrapolates linearly between
conj(objold.Parameters(:,:,1))
and
objold.Parameters(:,:,1)
. This ensures that
the network parameter data of the new object,
objnew.Parameters
approach real values as in
newfreq
approach 0
.
Examples
Input Arguments
Output Arguments
Algorithms
The function uses the MATLAB function interp1
to perform the
interpolation operation. Overall performance is similar to the RF Toolbox
analyze
function. However, behaviors of the two functions
differ when freq
contains frequencies outside the range
of the original data:
analyze
performs a zeroth-order extrapolation for out-of-range data points.rfinterp1
insertsNaN
values for out-of-range data points.
Version History
Introduced in R2012b