How can I write this exponential function in matlab?
Ältere Kommentare anzeigen
hi, please can anyone help me write the following functions in matlab?

Akzeptierte Antwort
Weitere Antworten (1)
Rajulapati Naveen
am 23 Nov. 2021
0 Stimmen
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 Kommentar
Walter Roberson
am 23 Nov. 2021
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
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!