Is my code for this question correct or not ?

3 ビュー (過去 30 日間)
Rama a
Rama a 2021 年 6 月 7 日
Find and sketch the signal y(t) which is the convolution of the two pairs if signals.
x = (exp(-2*t) - C*exp(-10*t)).*heaviside(t)
h = pi((t-B)/A)
sympref('HeavisideAtOrigin',1);
syms taw t;
A = 3; B = 4; C = 4;
x = (exp(-2*taw) - C*exp(-10*taw)).*heaviside(taw); %input signal
h = rectangularPulse((t-B)-taw/A); %impulse response
conv= int (x*h, taw, -inf, inf ) %output signal
SimpleSolution = simplify(vpa(conv))
fplot( conv, [-2 12]);
xlabel("t");
ylabel("(x*h)(t)");
title("the signal y(t) which is the convolution of x(t)and h(t)")

回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by