Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
27 Mar 2009 CONVOLUTION IN MATLAB WITHOUT USING conv(x,h) enter x=[ ]; % enter in brackets enter h=[ ] Author: imran shezad shezad, imran

24 Mar 2009 CONVOLUTION IN MATLAB WITHOUT USING conv(x,h) enter x=[ ]; % enter in brackets enter h=[ ] Author: imran shezad Jos

A typical example of a file that has no use for others, written in poor C-style code. Do not bother to download!

23 Mar 2009 CONVOLUTION IN MATLAB WITHOUT USING conv(x,h) enter x=[ ]; % enter in brackets enter h=[ ] Author: imran shezad Hanselman, Duane

The content of the M-file is:
% A GENERALAZED CONVOLUTION COMPUTING CODE IN MATLAB WITHOUT USING MATLAB BUILTIN FUNCTION conv(x,h)
close all
clear all
x=input('Enter x: ')
h=input('Enter h: ')
m=length(x);
n=length(h);
X=[x,zeros(1,n)];
H=[h,zeros(1,m)];
for i=1:n+m-1
Y(i)=0;
for j=1:m
if(i-j+1>0)
Y(i)=Y(i)+X(j)*H(i-j+1);
else
end
end
end
Y
stem(Y);
ylabel('Y[n]');
xlabel('----->n');
title('Convolution of Two Signals without conv function');

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com