Amplitude Shift Keying Modulation Technique
Version 1.0.0 (1.72 KB) by
Abdo Ayman
This MATLAB code simulates the modulation and demodulation of a binary signal using Amplitude Shift Keying (ASK), specifically Binary ASK
- Generate Binary Data:
- Randomly generates a binary data sequence of length 10.
- Plot Binary Signal:
- Plots the generated binary signal using a stem plot.
- Digital Signal Representation:
- Converts the binary data into a digital signal with a specified number of samples per bit (nb).
- Plot Digital Signal:
- Plots the digital signal.
- Carrier Signal:
- Defines a carrier signal as a cosine wave with a frequency (fc) that is related to the bit period (bp).
- Plot Carrier Signal:
- Plots the carrier signal.
- ASK Modulation:
- Modulates the digital signal onto the carrier using Amplitude Shift Keying (ASK).
- If the binary data is 1, it uses a high amplitude (A1), otherwise, it uses a low amplitude (A2).
- Plot ASK Modulated Signal:
- Plots the ASK modulated signal.
- BASK Modulation:
- Modulates the binary signal onto the carrier using Binary Amplitude Shift Keying (BASK).
- If the binary data is 1, it uses a high amplitude (A1), otherwise, it uses a zero amplitude (A3).
- Plot BASK Modulated Signal:
- Plots the BASK modulated signal.
- Demodulation - ASK with Comparator:
- Demodulates the ASK modulated signal using a comparator.
- It compares each segment of the modulated signal with a threshold, and if the maximum value in the segment is greater than the threshold, it demodulates a 1; otherwise, it demodulates a 0.
- Plot Demodulated Signal:
- Plots the demodulated signal using a stem plot.
Cite As
Abdo Ayman (2026). Amplitude Shift Keying Modulation Technique (https://www.mathworks.com/matlabcentral/fileexchange/156652-amplitude-shift-keying-modulation-technique), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
