computing Pulse Amplitude Modulation(PAM) by matlab.

Status
Not open for further replies.

ghasia

Newbie level 6
Joined
Feb 28, 2007
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,372
matlab pulse amplitude modulation

Hi,can someone help me to compute the waveform of the PAM signal s(t) with pulse duration T=500;a sinusoidal signalof frequency f0=10000Hz sampled at the rate of 8kHz and then applied to a sample-and-hold circuit to produce a flat toppped PAM.
can i show my codes as
"fs=8000;
>> n=0:1/fs:1;
>> x=cos(10000*n);
>> plot(n,x);
but i couldnt obtain the result.i've attached the waveform of my results.
Thanks in advance
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…