How can I write this exponential function in matlab?
显示 更早的评论
hi, please can anyone help me write the following functions in matlab?

采纳的回答
更多回答(1 个)
Rajulapati Naveen
2021-11-23
0 个投票
f = @(x) exp(-x.^2/4) .* cos(2*pi*x); g = @(x) exp(x) .* (x <= 0) + sin(2*pi*x)./max(x,realmin) .* (x>0);
1 个评论
Walter Roberson
2021-11-23
What difference is there between that and what I posted https://www.mathworks.com/matlabcentral/answers/391290-how-can-i-write-this-exponential-function-in-matlab#answer_312468
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!