www.gusucode.com > rf 案例源码程序 matlab代码 > rf/OpenifClassExampleExample.m
%% Openif Class Example % % %% Define the OPENIF object % Copyright 2015 The MathWorks, Inc. hif = OpenIF(50e6,'IFLocation','MixerOutput'); %% Define the first mixer and add to OPENIF object IMT1 = [99 00 21 17 26; ... 11 00 29 29 63; ... 60 48 70 65 41; ... 90 89 74 68 87; ... 99 99 95 99 99]; addMixer(hif,IMT1,2.4e9,100e6,'low'); %% Define the second mixer and add to OPENIF object IMT2 = [99 00 09 12 15; ... 20 00 26 31 48; ... 55 70 51 70 53; ... 85 90 60 70 94; ... 96 95 94 93 92]; addMixer(hif,IMT2,3.7e9,150e6,'low'); %% Define the third mixer and add to OPENIF object IMT3 = [99 00 15 23 36; ... 10 00 34 27 59; ... 67 61 56 59 68; ... 97 82 81 60 77; ... 99 99 99 99 96]; addMixer(hif,IMT3,5e9,200e6,'low'); %% Spur free analysis hif.report %% Generate spur graph figure; hif.show