www.gusucode.com > rfblksdemos 工具箱matlab源码程序 > rfblksdemos/html/sparam_amp.m
%% Data File for Amplifier % This model shows how to use the General Amplifier block of the SimRF(TM) % Equivalent Baseband library to model an amplifier whose parameters are % specified in a data file. The data file default.s2d contains the % S-parameters of an amplifier at frequencies ranging from 1 GHz to 2.9 % GHz. It also contains power-dependent S21 data at 2.1 GHz. % Copyright 2003-2014 The MathWorks, Inc. %% Example Model % Fig. 1 Equivalent Baseband amplifier example model: open('sparam_amp.slx'); %% Simulation Results % The following figure shows the equivalent baseband spectrum of the input % and output signals of the nonlinear amplifier over the frequency range % from 1.85 GHz (-0.25 GHz) to 2.35 GHz (0.250 GHz). This is the range of % frequencies that the complex equivalent baseband model uses to simulate % the amplifier. For more information about complex equivalent baseband % modeling, see % <matlab:helpview(fullfile(docroot,'simrf','helptargets.map'),'create_bbeq'); % Creating a Complex Baseband-Equivalent Model> section of the doc. % % Fig. 2 Equivalent Baseband Spectrum: sim('sparam_amp',0.5e-4); %% % To see the frequency response centered at another RF frequency, change % the Center frequency parameter in the Input Port block. bdclose('sparam_amp'); displayEndOfDemoMessage(mfilename)