FSK and MSK mod

4 views (last 30 days)
Kanard
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);

Accepted Answer

Walter Roberson
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
Kanard
Kanard on 15 Jul 2018
thanks for your answer, then is anyway to create FSK signal for a bipolar signal without using fskmod function?
Walter Roberson
Walter Roberson on 15 Jul 2018
Sorry, I do not know.
You can convert the bipolar to unipolar as (ms > 0)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!