How do you express this function in MATLAB syntax ?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Emre Can Usengul
il 9 Giu 2020
Commentato: Walter Roberson
il 9 Giu 2020
𝑓(𝑥) = e^x + sin(5x)
How do you express this function in MATLAB syntax ?
0 Commenti
Risposta accettata
KSSV
il 9 Giu 2020
Modificato: KSSV
il 9 Giu 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 Commenti
Walter Roberson
il 9 Giu 2020
f = exp(x)+sin(5*x) ;
would be an error if you had not defined x before.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!