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

1 次查看(过去 30 天)
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
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 CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by