analoge to digital

i want to convert this analoge signal s = sin(2*pi*300*t)+2*sin(2*pi*600*t); to digital signal (pulses) could you please send me the command !

2 Comments

Jan
Jan on 4 Jun 2011
Please explain the desired format of the output. Of course even your "s" is a digital signal, because it is stored in the memory of a digital computer.
Do you want a representation e.g. by 16 bit integers sampled at 11KHz without a lowpass filter??
Nada
Nada on 4 Jun 2011
t = .01;
Fc = 10000; Fs = 80000;
t = [0:1/Fs:0.01]';
s = sin(2*pi*300*t)+2*sin(2*pi*600*t); % Original signal
[num,den] = butter(10,Fc*2/Fs); % Lowpass filter
y1 = ammod(s,Fc,Fs); % Modulate.
s1 = amdemod(y1,Fc,Fs,0,0,num,den); % Demodulate.
i want to convert this code into ask digital modulation

Answers (0)

This question is closed.

Asked:

on 4 Jun 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!