%---------------------------------------------------
%>>>>>>>>>>>>>>>>>>初始化数据>>>>>>>>>>>>>>>>>>>>>
%---------------------------------------------------
clc,clear,close all;
fs = 30000;
Time_Hold_On = 0.1;
Num_Unit = fs * Time_Hold_On;
one_Level = zeros ( 1, Num_Unit );
two_Level = ones ( 1, Num_Unit );
three_Level = 2*ones ( 1, Num_Unit );
four_Level = 3*ones ( 1, Num_Unit );
A = 1; % the default ampilitude is 1
w1 = 300; %初始化载波频率
w2 = 600;
w3=900;
w4=1200;
%---------------------------------------------------
%>>>>>>>>>>>>>>>>>>串并转换>>>>>>>>>>>>>>>
%---------------------------------------------------
1