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

조회 수: 1 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by