How to plot convolution of 2 functions

4 ビュー (過去 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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by