I want to plot this function f = cos(0.5*t)​*5*exp(t)/​(t^2+1)

3 ビュー (過去 30 日間)
Amjad Daluol
Amjad Daluol 2020 年 6 月 14 日
コメント済み: Amjad Daluol 2020 年 6 月 14 日
I have t= 0:0.01:10; but I have a problem with the function itself. I know that I need to perform an element by element multiplication, but do not know how. Please help.

採用された回答

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2020 年 6 月 14 日
You should place a period befor operations to get element-wise operators.
f = cos(0.5.*t) .* 5 .* exp(t) ./ (t.^2+1);

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by