How to plot convolution of 2 functions

조회 수: 1 (최근 30일)
Mohamed H
Mohamed H 2018년 12월 20일
댓글: vishal raj 2019년 11월 20일
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
Mohamed H
Mohamed H 2018년 12월 20일
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 2019년 11월 20일
plot(output)

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2018년 12월 20일
편집: madhan ravi 2018년 12월 20일
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
Bruno Luong
Bruno Luong 2018년 12월 20일
It cannot be plotted. The convolution is not defined for those functions.
madhan ravi
madhan ravi 2018년 12월 20일
Thanks Bruno for making it loud and clear.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by