Read Baseband Signal from File in Simulink
Read the baseband signal from the saved file example.bb.
The baseband_samples_1ghz.bb file contains 10,000 samples having a sample rate of 1 Hz. The simulation stop time for the model is set to 12,000. The Baseband File Reader
block configuration has Inherit sample time from file
enabled, Samples per frame
set to 100, and Repeatedly read the file
disabled. As a result, the simulation time exceeds the amount of saved data and the last 2000 samples are zero padded.
The Baseband File Reader
block configuration is modified to enable the Repeatedly read the file
parameter. Now, when the model runs, after 10,000 s, the file is read again so the samples from 10,000 to 12,000 s are a repeat of the first 2000 samples.