How do you express this function in MATLAB syntax ?

3 次查看(过去 30 天)
𝑓(𝑥) = e^x + sin(5x)
How do you express this function in MATLAB syntax ?

采纳的回答

KSSV
KSSV 2020-6-9
编辑:KSSV 2020-6-9
f = exp(x)+sin(5*x) ; % define x before
f = @(x) exp(x)+sin(5*x) ; % call by f(value) This is called Anonymous function
  5 个评论
KSSV
KSSV 2020-6-9
I gave comments...did you folllow those comments?

请先登录,再进行评论。

更多回答(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