MATLAB Answers

Kanard
0

FSK and MSK mod

Asked by Kanard
on 14 Jul 2018
Latest activity Commented on by 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

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 14 Jul 2018
Edited by Walter Roberson
on 14 Jul 2018
 Accepted Answer

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

Sign in to comment.