ofdm注水功率算法 ofdm中的注水功率算法仿真程序function[shanonCapacitypowerAllocated]=ofdmwaterfilling(...nSubChannel,totalPower,channelStateInformation,bandwidth,noiseDensity);%===
OFDM频谱载波图 x=0:0.1:13; y1=cos(x); y2=cos(0.5*x); y3=cos(2*x); y4=cos(1.5*x); plot(x,y1,'c') hold on plot(x,y2,'b') hold on plot(x,y3,'y') hold on plot(x,y4,'g')