Sunteți pe pagina 1din 2

MATLAB Programs 08: Finding the linear convolution of two sequenc...

http://technoburst.blogspot.in/2011/07/matlab-programs-08-finding-lin...

HOME

ABOUT ME

Search

HOME

TECH UPDATES

ELECTRONICS

COMPUTER

EMBEDDED SYSTEMS

CIRCUIT LAB

PROGRAMMING

MATLAB Programs 08: Finding the linear convolution of two sequences


5:54 AM Anil C S No comments

MONTHLY PAGEVIEWS

17121
In matlab conv() function is used for finding the linear convolution of sequences. The program is shown below.

FOLLOWERS
with Google Friend Connect

%Program to find the linear convolution of two sequences x1=input('Enter the first sequence x1(n) = '); t1=input('Enter the starting time of first sequence t1 = '); x2=input('Enter the second sequence x2(n) = '); t2=input('Enter the starting time of second sequence t2 = '); l1=length(x1); l2=length(x2); ln=l1+l2-1; yn=conv(x1,x2); a=t1+l1-1; t=t1:a; subplot(311); stem(t,x1); grid on; xlabel('time--->'); ylabel('amplitude--->'); TITLE('First sequence'); a=t2+l2-1; t=t2:a; subplot(312); stem(t,x2); grid on; xlabel('time--->'); ylabel('amplitude--->'); TITLE('Second sequence'); tn=t1+t2; a=tn+ln-1; t=tn:a; subplot(313); stem(t,yn); grid on; xlabel('time--->'); ylabel('amplitude--->'); TITLE('Convolved output'); %output %Enter the first sequence x1(n) = [1 2 6 2 3 1 4]

Members (42) More

Already a member? Sign in

BLOG ARCHIVE
2012 (6) 2011 (44) August (8) July (20) Playing with files in Linux command line Have fun with Linux command line KTechLab: A tool for electronic circuit design and... Piklab: An IDE for PIC development Explore the world of electronics with Fedora Elect... MATLAB Programs 15: Generating an exponentially da... MATLAB Programs 14: Generating a square wave Now Explore The Power Of PIC in Linux RF Module Interfacing Circuit Example MATLAB Programs 13: Design of an IIR Chebyschev ty... MATLAB Programs 12:Design of an IIR Chebyschev typ... MATLAB Programs 11: Design of an IIR Butterworth f... Difference between const and static in C C Programs 04: To swap two numbers without using a...

1 of 2

10-04-2012 20:40

MATLAB Programs 08: Finding the linear convolution of two sequenc...

http://technoburst.blogspot.in/2011/07/matlab-programs-08-finding-lin...

%Enter the starting time of first sequence t1 = -3 %Enter the second sequence x2(n) = [3 1 4 5 2] %Enter the starting time of second sequence t2 = -1

C Programs 03: To find the rank of a matrix Reading double in C using scanf() Killing Processes in Linux MATLAB Programs 10: Design Of FIR filter using win... MATLAB Programs 09: Design of FIR bandpass filter MATLAB Programs 08: Finding the linear convolution... June (8) May (1) January (7) 2010 (99) 2009 (4) contents of this blog is owned by Technoburst. Powered by Blogger.

Posted in: MATLAB

Reactions:

HOME

ABOUT ME

Newer Post

Home

Older Post

0 comments: Post a Comment

Comment as:

Copyright 2011 Technoburst | Powered by Blogger


Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes

2 of 2

10-04-2012 20:40

S-ar putea să vă placă și