# how to calculate the length of the time domain samples in nrOFDMModulate

5 Ansichten (letzte 30 Tage)
Sanju Das am 17 Mai 2023
Bearbeitet: Sanju Das am 24 Mai 2023
Hello,
I am using the function nrOFDMModulate to generate OFDM modulated waveform.
In the documentation, the details mentioned are as follows (nrOFDMModulate)
[waveform,info] = nrOFDMModulate(carrier,grid)
where, waveform — OFDM modulated waveform, returned as a complex-valued matrix of size T-by-P
• T is the number of time-domain samples in the waveform
• P is the number of transmit antennas.
Here, I would like to know how to calculate the length of T?
Thanks
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Gokul Nath S J am 23 Mai 2023
Bearbeitet: Gokul Nath S J am 24 Mai 2023
Hi Sanju,
It seems that you would like to calculate the length of the waveform signal. Please note that the length of 'waveform' will depends on the following parameters.
• FFT Length (Nfft)
• Number of symbols (Nsym)
• Cyclic prefix lengths (CPLEN)
The length of the 'waveform' depends on whether the cpLength is a vector or a scalar.
• If it is a vector, the length of the waveform is equal to (Nfft x Nsym + sum(CPLEN))
• If it is a scalar, the length of the waveform will be (Nfft + CPLEN) x Nsym
with regards,
Gokul Nath S J
##### 1 Kommentar-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden
Sanju Das am 24 Mai 2023
Bearbeitet: Sanju Das am 24 Mai 2023
I have checked it for the case where cpLength is a vector, and the formula is working perfectly for one slot.

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu LTE Toolbox finden Sie in Help Center und File Exchange

R2022b

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by