Course Solutions Uncategorized (Solved) : Matlab Question Simple Code Function Convolution X1 X2 Laplace Transform Function Compute Q31407050 . . . .

(Solved) : Matlab Question Simple Code Function Convolution X1 X2 Laplace Transform Function Compute Q31407050 . . . .

 

MATLAB QUESTION SIMPLE

From this code:

function convolution(x1,x2)
% laplace transform each function,
% compute the product, so convolve them
con = laplace(x1)*laplace(x2);
% inverse transform will be the convolution of x and h
x1x2 = ilaplace(con);
pretty(xh)
ezplot(xh)
end

When i put this in the command window:

x1=[0,2,0,0,3,0,0]
x2=[0,1,0,2,0,0,4]

convolution(x1,x2)

Why do i get the error

Undefined function

‘laplace’ for input arguments of type ‘double’.

Error in myconvolution (line 4)
con = laplace(x1)*laplace(h2);

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post