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!