FSK and MSK mod
4 views (last 30 days)
Show older comments
Kanard
on 14 Jul 2018
Commented: Walter Roberson
on 15 Jul 2018
Hello, i have a question about fskmod and mskmod, when I tried to use these functions, it can only run when my bipolar bitstream. When I use unipolar, then the code can't compile.
ms = 2*randi([0 1],1000,1) -1;
msk = mskmod(ms,8,[],pi/2);
0 Comments
Accepted Answer
Walter Roberson
on 14 Jul 2018
Edited: Walter Roberson
on 14 Jul 2018
>> help mskmod
[...] The elements of X must be 0 or 1.
>> help fskmod
[...] M is the alphabet size and must be an integer power of 2. The message signal must consist of integers between 0 and M-1.
Your ms is -1 and +1, which is against the requirement that the values must be 0 or 1. Neither function accepts bipolar signals.
2 Comments
Walter Roberson
on 15 Jul 2018
Sorry, I do not know.
You can convert the bipolar to unipolar as (ms > 0)
More Answers (0)
See Also
Categories
Find more on Modulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!