Code covered by the BSD License
C2F (C)
C2F Convert a temperature from Centigrade to Farenheit
C2K (C)
C2K Convert a temperature from Centigrade to Kelvin
F2C (F)
F2C Convert a temperature from Farenheit to Centigrade
F2K (F)
F2K Convert a temperature from Farenheit to Kelvin
FFTSNDR(samples, fsample,... FFTSNDR Function to find SNR from an FFT
GaussFilt(BW, N)
GAUSSFILT Design a Gaussian Low-Pass Filter
GaussSQNR(L, MQL, STD);
GAUSSSQNR Function to calculate SQNR of A/D converter with Gaussian input
IMR(a, p)
IMR Calculate image rejection ratio given amplitude and phase mismatch
K2C (K)
K2C Convert a temperature from Kelvin to Centigrade
K2F (K)
K2F Convert a temperature from Kelvin to Farenheit
MUSTRIPLOSS (EpsR, EpsE, ... MUSTRIPLOSS Calculate the attenuation of a microstrip line
MUSTRIPZ0 (EpsR, WbyD)
MUSTRIPZ0 Calculate the characteristic impedance of a microstrip line
PulseSource (X, RT, FT, W... PULSESOURCE Generates output of pulsed source
SIMPLE_GM(mode, IN, W, L,... SIMPLE_GM Function to find transconductance given drain current or overdrive voltage
SINEAPPROX(T, F, A, C)
SINEAPPROX Generates a clipped sine wave and an approximation to it.
STRIPLINELOSS (EpsR, tand... STRIPLINELOSS Calculate the attenuation of a stripline
STRIPLINEZ0 (EpsR, WbyB)
STRIPLINEZ0 Calculate the characteristic impedance of a stripline
adbP (x)
ADBP Convert a decibel signal into a power signal
adbV (x)
ADBV Convert a decibel signal into an amplitude signal
adbm (x)
ADBM Convert a dbm signal into a power signal (Watts)
binomialtransformer (Zl, ... BINOMIALTRANSFORMER Design a multisection binomial impedance transformer
binomialxfrmrbw (Zl, Z0, ... BINOMIALXFRMRBW Calculate the bandwidth of a binomial transformer
ccc2pcc (ccc);
CCC2PCC Converts a complex number into magnitude and phase (in radians)
cfreqz.m CFREQZ Function to plot pole-zero plot and transfer function of complex poles
chebpoly(N,X)
CHEBPOLY Evaluate Chebyshev polynomial
compare(varargin);
COMPARE Function to plot two vectors of different scales on same x axis
dbP (x)
DBP Convert a power signal into decibels
dbV (x)
DBV Convert a voltage signal into decibels
dbm (x)
DBM Convert a power signal (Watts) into dbm
deg2rad (deg)
DEG2RAD Convert a vector from degrees to radians
digital(varargin);
DIGITAL Function to plot digital signals
fft_a_p_mismatch(samples1... FFT_A_P_MISMATCH Amplitude and phase mismatch of two signals from an FFT
fftamp(samples, fs, f0, v... FFTAMP Function to find amplitude of a particular frequency from an FFT
fftamp(samples, fs, f0, v... FFTPHASE Function to find phase of a particular frequency from an FFT
fftbandamp(samples, fs, f... FFTBANDAMP Function to find rms amplitude of a particular band from an FFT
freqs1 (B,A,W)
FREQS1 Function to find the frequency response of a filter at 1 frequency
iscmplx (x)
ISCMPLX Tests if a number or array is complex
iseven (x)
ISEVEN Tests if a number or vector is even
isodd (x)
ISODD Tests if a number or vector is odd
lambertw (A)
llimit (x, m);
LLIMIT Limit a vector to a given minimum value
loadspice(infname)
LOADSPICE Reads in SPICE data from .out file
logfft(samples, fs, vpp, ... LOGFFT Function to plot FFT
mask (vect, maskv)
MASK Mask a vector using another vector. Include only those elements in the
mustrip (H, Z0, EpsR)
MUSTRIP Calculate the required width of a microstrip line
mustripw (Weff, T, H)
MUSTRIPW Calculate the width of a microstrip line from the effective width required
mustripweff (W, T, H)
MUSTRIPWEFF Calculate the effective width of a microstrip line
parallel (varargin)
PARALLEL Computes the value of components in "parallel"
pcc2ccc (mag, ang);
PCC2CCC Convert the polar input into a complex number
pinkfilt (alpha, numtaps)
PINKFILT Generate filter coefficients for a 'pink noise' filter.
rad2deg (rad)
RAD2DEG Convert a vector from radians to degrees
repeat(x, N);
REPEAT Upsample a vector by inserting repeated samples
rflib
RFLIB Open the RF Circuits Toolbox SIMULINK Block Library.
rms (x)
RMS Compute the RMS value of a vector
roundto (X, Resolution)
ROUNDTO Round the input to a specified resolution
sd_fft(samples, fs, vpp, ... PLOTFFT Function to plot FFT
sigres(x,y)
SIGRES Function to plot the signal response of a complex system
singlestub (Z0, Zl, STUBT... SINGLESTUB Computes the single-stub matching networks for a given Zl and Z0
singlestubresponse (Z0, Z... SINGLESTUBRESPONSE Computes the frequency response of a single-stub match
stripline (H, Z0, EpsR)
STRIPLINE Calculate the required width of a stripline
ulimit (x, m);
ULIMIT Limit a vector to a given maximum value
uniquepcnt(a, PCNT)
UNIQUEPCNT Set unique, ignoring roundoff error.
vectfilt (vect, type)
VECTFILT Filter a vector to have only specific type of elements. Types are 'real',
IMR_JT.m IMR_JT File to generate an IMR plot such as that in Jantzi thesis, p. 22.
L1PSD.m L1PSD Script to plot the theoretical power spectrum of the GPS L1 signal
constants.m CONSTANTS Script defining useful constants for scientific calculation
RF
View all files
RF Design and Analysis
by
Jackson Harvey
23 Jul 2001
A collection of functions, scripts, & Simulink models useful for designing and analyzing RF systems
adbm (x)
% ADBM Convert a dbm signal into a power signal (Watts)
%
% [y] = ADBM (x) converts x into a power signal
%
function [y] = adbm (x)
y = 10.^((x-30)/10);
Contact us