Tweets by @dsprelated

A Quadrature Signals Tutorial: Complex, But Not Complicated

Understanding the 'Phasing Method' of Single Sideband Demodulation

Complex Digital Signal Processing in Telecommunications

Introduction to Sound Processing

Introduction of C Programming for DSP Applications

**Technical discussion about Matlab and issues related to Digital Signal Processing.**

**Is this thread worth a thumbs up?**

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
wrote:n...@yahoo.com>
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail |

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 |