0% found this document useful (0 votes)
358 views3 pages

MATLAB ASK Modulation Guide

This document describes an Amplitude Shift Keying (ASK) modulation code implemented in Matlab. It generates a carrier signal at 25 Hz, square pulses at 5 Hz to modulate the carrier amplitude, and plots the resulting ASK signal. The code defines the carrier amplitude, modulation frequencies, generates the carrier and modulation signals, and plots the individual signals and final modulated ASK signal over time on separate subplots for analysis and visualization of the ASK modulation process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
358 views3 pages

MATLAB ASK Modulation Guide

This document describes an Amplitude Shift Keying (ASK) modulation code implemented in Matlab. It generates a carrier signal at 25 Hz, square pulses at 5 Hz to modulate the carrier amplitude, and plots the resulting ASK signal. The code defines the carrier amplitude, modulation frequencies, generates the carrier and modulation signals, and plots the individual signals and final modulated ASK signal over time on separate subplots for analysis and visualization of the ASK modulation process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Amplitude Shift Keying ASK Modulation Code in Matlab.

clear all
close all
clc
F1=25;
F2=5;
A=3; %Amplitude
t=0:0.001:1;
x=A.*sin(2*pi*F1*t)+(A/2);
u=A/2.*square(2*pi*F2*t)+(A/2);
v=x.*u;
subplot(3,1,1)
plot(t,x)
title(‘Carrier´)
grid on;
subplot(3,1,2)
plot(t,u);
title(‘Square pulses’);
grid on;
subplot(3,1,3)
plot(t,v)
title(‘ASK Signal’)
grid on;

You might also like