Introduction - If you have any usage issues, please Google them yourself
A channel matrix of MIMO is generated randomly, and the channel capacity is calculated by water filling algorithm and equal gain algorithm respectively. Power allocation of subchannels is obtained and plotted.