Code covered by the BSD License  

Highlights from
RF Design and Analysis

RF Design and Analysis

by

 

A collection of functions, scripts, & Simulink models useful for designing and analyzing RF systems

SINEAPPROX(T, F, A, C)
% SINEAPPROX  Generates a clipped sine wave and an approximation to it.
% 
%    [EXACT, APPROX] = SINEAPPROX (Time, Frequency, Amplitude, ClipAmp) 
%        Generates the clipped sine wave and an approximation to it at
%        times given by Time.
% 

function [EXACT, APPROX] = SINEAPPROX(T, F, A, C)

Tr = asin(C/A)/pi/F;
APPROX = PulseSource(T, Tr, Tr, 1/2/F - Tr, 1/F, -Tr/2, C, -C);
EXACT = llimit(ulimit(A*sin(2*pi*F*T), C), -C);

Contact us