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

(Answered) : Question 1 6 Marks Getting Physical Examination Physician S Office Involves Series Steps T Q30610703(Answered) : Question 1 6 Marks Getting Physical Examination Physician S Office Involves Series Steps T Q30610703

<br/><img src="https://media.cheggcdn.com/media%2Fd40%2Fd40de3f6-a487-400a-bd14-16716ef3f04c%2Fimage" alt="Question 1 6 Marks Getting a physical examination at a physicians office involves a series of steps. The table below lists these activities and their average times. The