How to plot convolution of 2 functions

1 Ansicht (letzte 30 Tage)
Mohamed H
Mohamed H am 20 Dez. 2018
Kommentiert: vishal raj am 20 Nov. 2019
if i have a y1 function of t , and y2 function of t and i want to plot convolution of y1 and y2 with time, how to do that it gives me length error
  3 Kommentare
Mohamed H
Mohamed H am 20 Dez. 2018
t=0:0.1:10;
y1=3*t+5;
y2=4*t.^2+1;
output=conv(y1,y2);
plot (t,output)
vishal raj
vishal raj am 20 Nov. 2019
plot(output)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

madhan ravi
madhan ravi am 20 Dez. 2018
Bearbeitet: madhan ravi am 20 Dez. 2018
syms t
y1=3*t+5;
y2=4*t^2+1;
fplot(y1*y2)
%edit after Brunos suggestion it’s not possible to represent the convolution for these functions
  6 Kommentare
Bruno Luong
Bruno Luong am 20 Dez. 2018
It cannot be plotted. The convolution is not defined for those functions.
madhan ravi
madhan ravi am 20 Dez. 2018
Thanks Bruno for making it loud and clear.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by