COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### AM Help regarding DSB SC & DSB FC

• Email
• Follow

```Hello. I am new in matlab simulation.
I want to generate the below signal:

x(t)={ t+1,     0<=t<1
-t+2,     1<=t<=2
5,        Otherwise
}

& after generating need to amplitude modulate (both DSB-SC & DSB-LC) with 100Hz carrier.

Can any body give me example for generate & modulate the signal? Urgent please.

Thanks.
Nazmus.
```
 0

See related articles to this posting

```Am 31.08.2010 16:23, schrieb Md. Nazmus Sakib:
> Hello. I am new in matlab simulation.
> I want to generate the below signal:
>
> x(t)={ t+1, 0<=t<1
> -t+2, 1<=t<=2
> 5, Otherwise
> }
>
> & after generating need to amplitude modulate (both DSB-SC & DSB-LC)
> with 100Hz carrier.
>
> Can any body give me example for generate & modulate the signal? Urgent
>
> Thanks.
> Nazmus.

Hi,

for me it looks like it makes much more sence for at least 10kHz, but
you can figure that out as well as the number of discretization points
to use...
Try this:

pi=3.14;
nCarrierFrequency=10000;

t=0:0.001:4.999;
x=zeros(1,5000);

for counter=1:5000
if (t(counter)>=0 && t(counter)<1)
x(counter)=t(counter)+1;
elseif (t(counter)>=1 && t(counter)<2)
x(counter)=-t(counter)+2;
else
x(counter)=5;
end
end

carrier(:,1)=cos(2*pi*nCarrierFrequency*t(1,:));
signal=carrier.*x';

figure();
plot(t, x);

figure();
plot(t, carrier);

figure();
plot(t, signal);
```
 0

```Daniel Goerke <danielgoerke@gmx.net> wrote in message <i5j5qs\$9ch\$4@news-cypress.fernuni-hagen.de>...
> Am 31.08.2010 16:23, schrieb Md. Nazmus Sakib:
> > Hello. I am new in matlab simulation.
> > I want to generate the below signal:
> >
> > x(t)={ t+1, 0<=t<1
> > -t+2, 1<=t<=2
> > 5, Otherwise
> > }
> >
> > & after generating need to amplitude modulate (both DSB-SC & DSB-LC)
> > with 100Hz carrier.
> >
> > Can any body give me example for generate & modulate the signal? Urgent
> >
> > Thanks.
> > Nazmus.
>
> Hi,
>
> for me it looks like it makes much more sence for at least 10kHz, but
> you can figure that out as well as the number of discretization points
> to use...
> Try this:
>
>
> pi=3.14;
> nCarrierFrequency=10000;
>
> t=0:0.001:4.999;
> x=zeros(1,5000);
>
>
> for counter=1:5000
>      if (t(counter)>=0 && t(counter)<1)
>          x(counter)=t(counter)+1;
>      elseif (t(counter)>=1 && t(counter)<2)
>          x(counter)=-t(counter)+2;
>      else
>          x(counter)=5;
>      end
> end
>
> carrier(:,1)=cos(2*pi*nCarrierFrequency*t(1,:));
> signal=carrier.*x';
>
> figure();
> plot(t, x);
>
> figure();
> plot(t, carrier);
>
> figure();
> plot(t, signal);

Thank you very much. Its a nice code.
I have also generated the signal x(t) using linespace, that's a poor solution I know.
Some more query please . . .

here the modulation happens at the line,
signal=carrier.*x';  its DSB-SC I think.

Could u please tell me some more functions,
1. DSB-FC of x(t)
2. power content of the modulated signal
3. spectrum of the modulated signal &
4. power spectral density of the modulated signal

I can do the plot, just want to know the functions. Actually I am very new.
Thanks.

Nazmus.
```
 0

```Am 31.08.2010 20:47, schrieb Md. Nazmus Sakib:
> Daniel Goerke <danielgoerke@gmx.net> wrote in message
> <i5j5qs\$9ch\$4@news-cypress.fernuni-hagen.de>...
>> Am 31.08.2010 16:23, schrieb Md. Nazmus Sakib:
>> > Hello. I am new in matlab simulation.
>> > I want to generate the below signal:
>> >
>> > x(t)={ t+1, 0<=t<1
>> > -t+2, 1<=t<=2
>> > 5, Otherwise
>> > }
>> >
>> > & after generating need to amplitude modulate (both DSB-SC & DSB-LC)
>> > with 100Hz carrier.
>> >
>> > Can any body give me example for generate & modulate the signal? Urgent
>> >
>> > Thanks.
>> > Nazmus.
>>
>> Hi,
>>
>> for me it looks like it makes much more sence for at least 10kHz, but
>> you can figure that out as well as the number of discretization points
>> to use...
>> Try this:
>>
>>
>> pi=3.14;
>> nCarrierFrequency=10000;
>>
>> t=0:0.001:4.999;
>> x=zeros(1,5000);
>>
>>
>> for counter=1:5000
>> if (t(counter)>=0 && t(counter)<1)
>> x(counter)=t(counter)+1;
>> elseif (t(counter)>=1 && t(counter)<2)
>> x(counter)=-t(counter)+2;
>> else
>> x(counter)=5;
>> end
>> end
>>
>> carrier(:,1)=cos(2*pi*nCarrierFrequency*t(1,:));
>> signal=carrier.*x';
>>
>> figure();
>> plot(t, x);
>>
>> figure();
>> plot(t, carrier);
>>
>> figure();
>> plot(t, signal);
>
>
> Thank you very much. Its a nice code.
> I have also generated the signal x(t) using linespace, that's a poor
> solution I know.
> Some more query please . . .
>
> here the modulation happens at the line, signal=carrier.*x'; its DSB-SC
> I think.
>
> Could u please tell me some more functions,
> 1. DSB-FC of x(t)
> 2. power content of the modulated signal
> 3. spectrum of the modulated signal &
> 4. power spectral density of the modulated signal
>
> I can do the plot, just want to know the functions. Actually I am very
> new. Thanks.
>
> Nazmus.

Hi Nazmus,

I actually don't know exactly about the equations you should use for
DSB-FC and DSB-SC. Im not so much involved in AM, sorry...
You could have a look to the Matlab Central, since some people may have

To calculate the power content, you could use trapz to integrate your
curve and find the area which should correspond to the power.

To calculate the frequency specturm you can use abs(fft(signal)) to get
the real valued frequency spectrum of your signal.

Regards,
Daniel
```
 0
Reply danielgoerke (1) 8/31/2010 8:00:23 PM

```Daniel Goerke <danielgoerke@gmx.net> wrote in message <i5jn0m\$9ch\$5@news-cypress.fernuni-hagen.de>...
> Am 31.08.2010 20:47, schrieb Md. Nazmus Sakib:
> > Daniel Goerke <danielgoerke@gmx.net> wrote in message
> > <i5j5qs\$9ch\$4@news-cypress.fernuni-hagen.de>...
> >> Am 31.08.2010 16:23, schrieb Md. Nazmus Sakib:
> >> > Hello. I am new in matlab simulation.
> >> > I want to generate the below signal:
> >> >
> >> > x(t)={ t+1, 0<=t<1
> >> > -t+2, 1<=t<=2
> >> > 5, Otherwise
> >> > }
> >> >
> >> > & after generating need to amplitude modulate (both DSB-SC & DSB-LC)
> >> > with 100Hz carrier.
> >> >
> >> > Can any body give me example for generate & modulate the signal? Urgent
> >> >
> >> > Thanks.
> >> > Nazmus.
> >>
> >> Hi,
> >>
> >> for me it looks like it makes much more sence for at least 10kHz, but
> >> you can figure that out as well as the number of discretization points
> >> to use...
> >> Try this:
> >>
> >>
> >> pi=3.14;
> >> nCarrierFrequency=10000;
> >>
> >> t=0:0.001:4.999;
> >> x=zeros(1,5000);
> >>
> >>
> >> for counter=1:5000
> >> if (t(counter)>=0 && t(counter)<1)
> >> x(counter)=t(counter)+1;
> >> elseif (t(counter)>=1 && t(counter)<2)
> >> x(counter)=-t(counter)+2;
> >> else
> >> x(counter)=5;
> >> end
> >> end
> >>
> >> carrier(:,1)=cos(2*pi*nCarrierFrequency*t(1,:));
> >> signal=carrier.*x';
> >>
> >> figure();
> >> plot(t, x);
> >>
> >> figure();
> >> plot(t, carrier);
> >>
> >> figure();
> >> plot(t, signal);
> >
> >
> > Thank you very much. Its a nice code.
> > I have also generated the signal x(t) using linespace, that's a poor
> > solution I know.
> > Some more query please . . .
> >
> > here the modulation happens at the line, signal=carrier.*x'; its DSB-SC
> > I think.
> >
> > Could u please tell me some more functions,
> > 1. DSB-FC of x(t)
> > 2. power content of the modulated signal
> > 3. spectrum of the modulated signal &
> > 4. power spectral density of the modulated signal
> >
> > I can do the plot, just want to know the functions. Actually I am very
> > new. Thanks.
> >
> > Nazmus.
>
> Hi Nazmus,
>
> I actually don't know exactly about the equations you should use for
> DSB-FC and DSB-SC. Im not so much involved in AM, sorry...
> You could have a look to the Matlab Central, since some people may have
>
> To calculate the power content, you could use trapz to integrate your
> curve and find the area which should correspond to the power.
>
> To calculate the frequency specturm you can use abs(fft(signal)) to get
> the real valued frequency spectrum of your signal.
>
> Regards,
> Daniel

Hi Daniel.
Thanks my code is done. I have used FFT & PSD function for feq spectra  & power spectral density.

-Nazmus
```
 0

```hello there im really new in matlab programming i need a help to make this. i need to write a matlab program that show Double Side Band Suppress Carrier AM (DSBSC-AM) with a carrier frequency fc = 200Hz and modulating frequency fm = 2Hz.
> Plot AM signal vs time
>Spectrum vs frequency

i hope u can response as soon as possible sir i really need help on this..ty :D```
 0
Reply rayzour (1) 11/13/2012 9:39:51 PM

5 Replies
786 Views

Similar Articles

12/6/2013 10:29:52 PM
page loaded in 33562 ms. (0)

Similar Artilces:

this is regarding Cl
hi everybody, Can u sort out this issue for me pls there is an application, into ware house there are so many PGMS so i need to find out the list of pgms which are oftenly used means i need to write a Cl program thru which i can get the list of pgms used oftenly pls help what are the parameters i need to consider looking forward from u Thanks & Regards, Chandu., chandu wrote: > hi everybody, > > Can u sort out this issue for me pls > > there is an application, into ware house there are so many PGMS > > so i need to find out the list of pgms which are o

regarding ajax
i am new to ajax can any one help me out in using ajax, the situation is we have an account number text box after entering the account number and tabbing out it should go to another screen where it should check for account number whther it is exixting or not. You have the wrong newsgroup. You want comp.lang.javascript. If you search the Web, there are many exampels of using AJAX with, say JSON, for completeing a textbox from a database lookup, asynchronously. It sounds like you can use one of those, but, rather htan tying the request to a keystroke event, tie it to a lostfocus event in javas

Regarding RDF
Hi, I am facing a very strange problem from RDF recently. The situation is like this- I have primary node \A and back up node \B. While I update anything in node \A, RDF replicates the same to the database in \B. Till now everything is fine. The Updator process of the RDF in the backup node \B opens the datafiles for updation. It updates the file and keeps the file open for around ten minutes. The problem comes that moment. For any datafile, let say X, in the backup system, the FUP LISTOPENS shows that, the file has been kept open by the Updator process. Using Enform, we confirmed that

regarding spectrogram
clc; for n=1:256 x(n)=cos((pi*(n-1)/4)+1000*sin(pi*(n-1)/8000)) end [B,f,t] = specgram(x,256,32000,256,0) i am getting an error that there are too many input arguements which i don't understand. kindly help..this s a program to plot the spectrogram of the given signal with 256 length window and no overlap. "eric nunes" wrote in message <ik95g5\$rh1\$1@fred.mathworks.com>... > clc; > for n=1:256 > x(n)=cos((pi*(n-1)/4)+1000*sin(pi*(n-1)/8000)) > end > [B,f,t] = specgram(x,256,32000,256,0) > > > i am getting an error that there are

regarding kernel
hi, i want to pass cmd line params to kernel within source code and later i will compile-n-install,and i want to know how to pass params thr source code thanks .... On Wednesday 19 April 2006 13:21, pradyumn stood up and spoke the following words to the masses in /comp.os.linux.misc...:/ > hi, > i want to pass cmd line params to kernel within source code > and later i will compile-n-install,and i want to know how to pass > params thr source code You can't. You either supply a parameter on the kernel's command line at boot time to override the built-in defaults, or you

regarding supernet