DSPRelated.com
Forums
The 2025 DSP Online Conference

ASK waveform

Started by joshln January 29, 2005


Does any one know how to generate an ASK waveform on MatLab, the
data stream is [11000101].Thanks



Hi joshln
 
you can generate ASK by using the command find
 
data = [ 1 0 0 1 1 0 0 0 1 ];
zeros = find( data == 0 );
ones = fidn ( data == 1  );
 
mapped_signal( ones ) = 1;%assume 1 i mapped to 1
mapped_signal( zeros ) = -1;%assume 0  is mapped to -1
Best regards
George

n...@yahoo.com> wrote:


  Does any one know how to generate an ASK waveform on MatLab, the
data stream is [11000101].Thanks


NEW!  You can now post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/matlab/1.php

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

Archives:  http://www.dsprelated.com/groups/matlab/1.php

To Post:  Send an email to m...@yahoogroups.com

Other DSP Related Groups: http://www.dsprelated.com/groups.php



Douvrez le nouveau


Joshln,

What do you mean by ASK wave? Do you want to generate an upconverted
wave (modulating a carrier) or just different amplitude for zeros and
ones?

Tarang On Sat, 29 Jan 2005 21:27:10 -0000, joshln <> wrote:
>
>
> Does any one know how to generate an ASK waveform on MatLab, the
> data stream is [11000101].Thanks >
> To
>



Tarang-

> What do you mean by ASK wave? Do you want to generate an upconverted
> wave (modulating a carrier) or just different amplitude for zeros and
> ones?
> > Does any one know how to generate an ASK waveform on MatLab, the
> > data stream is [11000101].Thanks

I think Josh LN simply means OOK, or on-off sine wave:

A = [11000101]

m = 0
for i=0 to len(A)-1
for n=0 to N-1
ask[m++] = A[i]*sin(2*pi*n*f/M)

where N is modulation pulse width, f is carrier, and M is sampling rate.

-Jeff




Yes Jeff that sounds good.. just one more thing should be taken care
that N should be integral multiple of M ( its not a rule but a good
practise otherwise the spectrum will have lot of sidebands )

Hope this helps
Tarang On Tue, 01 Feb 2005 20:24:18 -0600, Jeff Brower <> wrote:
> Tarang-
>
> > What do you mean by ASK wave? Do you want to generate an upconverted
> > wave (modulating a carrier) or just different amplitude for zeros and
> > ones?
> > > Does any one know how to generate an ASK waveform on MatLab, the
> > > data stream is [11000101].Thanks
>
> I think Josh LN simply means OOK, or on-off sine wave:
>
> A = [11000101]
>
> m = 0
> for i=0 to len(A)-1
> for n=0 to N-1
> ask[m++] = A[i]*sin(2*pi*n*f/M)
>
> where N is modulation pulse width, f is carrier, and M is sampling rate.
>
> -Jeff
>



Tarang-

> Yes Jeff that sounds good.. just one more thing should be taken care
> that N should be integral multiple of M ( its not a rule but a good
> practise otherwise the spectrum will have lot of sidebands )

Yes otherwise there is a lot of edge noise. Or the pulse can be windowed prior to
transmission... but not as good.

-Jeff > On Tue, 01 Feb 2005 20:24:18 -0600, Jeff Brower <> wrote:
> > Tarang-
> >
> > > What do you mean by ASK wave? Do you want to generate an upconverted
> > > wave (modulating a carrier) or just different amplitude for zeros and
> > > ones?
> > > > Does any one know how to generate an ASK waveform on MatLab, the
> > > > data stream is [11000101].Thanks
> >
> > I think Josh LN simply means OOK, or on-off sine wave:
> >
> > A = [11000101]
> >
> > m = 0
> > for i=0 to len(A)-1
> > for n=0 to N-1
> > ask[m++] = A[i]*sin(2*pi*n*f/M)
> >
> > where N is modulation pulse width, f is carrier, and M is sampling rate.
> >
> > -Jeff



The 2025 DSP Online Conference