How do you express this function in MATLAB syntax ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Emre Can Usengul
am 9 Jun. 2020
Kommentiert: Walter Roberson
am 9 Jun. 2020
𝑓(𝑥) = e^x + sin(5x)
How do you express this function in MATLAB syntax ?
0 Kommentare
Akzeptierte Antwort
KSSV
am 9 Jun. 2020
Bearbeitet: KSSV
am 9 Jun. 2020
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 Kommentare
Walter Roberson
am 9 Jun. 2020
f = exp(x)+sin(5*x) ;
would be an error if you had not defined x before.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!