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

# ASK waveform

Started by ●January 29, 2005

Posted by ●January 30, 2005

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>
Douvrez le nouveau |

Posted by ●February 1, 2005

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 > |

Posted by ●February 1, 2005

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 |

Posted by ●February 2, 2005

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 > |

Posted by ●February 2, 2005

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 |