Matlab codes for LoRa Decoding

Before going through this post please read LoRa Decoding

Buy the Matlab codes here!

Code encodes 8 preamble symbols, 2 sync. symbols and 100 information symbols to LoRa chirp and successfully decodes. 

Code generates the following plots.

Code also generates one more plot which shows the output of FFT. 

For theory please refer to LoRa Decoding

If you are a research student and want to sell your work on my Blog here, please reach me on


  1. Hello Sakshama,

    How to choose sampling frequecy? Could you please explain why you choose it same as bandwidth?
    Can I choose the same fs for normal chirp modulation? Such as chirp-BOK?

  2. Hi Sakshama, why is sampling frequency equal to bandwidth? Thanks.

  3. Hello
    Does it works same if you change sampling frequency?