- % The number of cases to simulate.
- 2
- % Parameters of each case.
- 10 % 不要改
- % ========= Case 1:
- % Nt: The number of transmit antennas.
- 1
- % Nr: The number of receive antennas.
- 1
- % N: The number of subcarriers.
- 64
- %GI: CP length.
- 16
- % framenumber: The number of frames to simulate.
- 100000
- % minSNR: Minimum SNR in dB to simulate begin with.
- 0
- % maxSNR: Maximum SNR in dB to simulate end with.
- 30
- % stepSNR: SNR step in dB to increment.
- 4
- % state: Modulation format: Adaptive=0; BPSK=1; QPSK=2; 16QAM=4; 64QAM=6.
- 4
- % detection: Detection method: ZF=1; MMSE=2.
- 2
- % ========= Case 2:
- % Nt: The number of transmit antennas.
- 1
- % Nr: The number of receive antennas.
- 1
- % N: The number of subcarriers.
- 64
- %GI: CP length.
- 16
- % framenumber: The number of frames to simulate.
- 100000
- % minSNR: Minimum SNR in dB to simulate begin with.
- 0
- % maxSNR: Maximum SNR in dB to simulate end with.
- 30
- % stepSNR: SNR step in dB to increment.
- 4
- % state: Modulation format: Adaptive=0; BPSK=1; QPSK=2; 16QAM=4; 64QAM=6.
- 0
- % detection: Detection method: ZF=1; MMSE=2.
- 2
- % ========= Case 3:
- % Nt: The number of transmit antennas.
- 2
- % Nr: The number of receive antennas.
- 2
- % N: The number of subcarriers.
- 64
- %GI: CP length.
- 16
- % framenumber: The number of frames to simulate.
- 100000
- % minSNR: Minimum SNR in dB to simulate begin with.
- 0
- % maxSNR: Maximum SNR in dB to simulate end with.
- 30
- % stepSNR: SNR step in dB to increment.
- 4
- % state: Modulation format: Adaptive=0; BPSK=1; QPSK=2; 16QAM=4; 64QAM=6.
- 2
- % detection: Detection method: ZF=1; MMSE=2.
- 2
- % ========= Case 4:
- % Nt: The number of transmit antennas.
- 2
- % Nr: The number of receive antennas.
- 2
- % N: The number of subcarriers.
- 64
- %GI: CP length.
- 16
- % framenumber: The number of frames to simulate.
- 100000
- % minSNR: Minimum SNR in dB to simulate begin with.
- 0
- % maxSNR: Maximum SNR in dB to simulate end with.
- 30
- % stepSNR: SNR step in dB to increment.
- 4
- % state: Modulation format: Adaptive=0; BPSK=1; QPSK=2; 16QAM=4; 64QAM=6.
- 0
- % detection: Detection method: ZF=1; MMSE=2.
- 2
- % ========= Case 5:
- % Nt: The number of transmit antennas.
- 4
- % Nr: The number of receive antennas.
- 4
- % N: The number of subcarriers.
- 64
- %GI: CP length.
- 16
- % framenumber: The number of frames to simulate.
- 100000
- % minSNR: Minimum SNR in dB to simulate begin with.
- 0
- % maxSNR: Maximum SNR in dB to simulate end with.
- 30
- % stepSNR: SNR step in dB to increment.
- 4
- % state: Modulation format: Adaptive=0; BPSK=1; QPSK=2; 16QAM=4; 64QAM=6.
- 2
- % detection: Detection method: ZF=1; MMSE=2.
- 2
- % ========= Case 6:
- % Nt: The number of transmit antennas.
- 4
- % Nr: The number of receive antennas.
- 4
- % N: The number of subcarriers.
- 64
- %GI: CP length.
- 16
- % framenumber: The number of frames to simulate.
- 100000
- % minSNR: Minimum SNR in dB to simulate begin with.
- 0
- % maxSNR: Maximum SNR in dB to simulate end with.
- 30
- % stepSNR: SNR step in dB to increment.
- 4
- % state: Modulation format: Adaptive=0; BPSK=1; QPSK=2; 16QAM=4; 64QAM=6.
- 0
- % detection: Detection method: ZF=1; MMSE=2.
- 2