I am simulating DSSS Model and keep getting the same error, can someone help me fix it

9 views (last 30 days)
help

Answers (1)

Jemima Pulipati
Jemima Pulipati on 17 Dec 2020
Edited: Jemima Pulipati on 21 Dec 2020
Hello,
The error you are facing is due to unexpected input for BPSK Modulator Baseband block. This block expects the input to be an integer from 0 to M-1.
The cause of the invalid input value is the M value that has been set for Random Integer Source block, i.e it has been set to 8, while all the other blocks of the model use M = 2 for BPSK.
This issue can be resolved by changing the set size (M value) in the Block parameters of Random Integer Source block to 2.

Products

Community Treasure Hunt

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

Start Hunting!