How do you express this function in MATLAB syntax ?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Emre Can Usengul
el 9 de Jun. de 2020
Comentada: Walter Roberson
el 9 de Jun. de 2020
𝑓(𝑥) = e^x + sin(5x)
How do you express this function in MATLAB syntax ?
0 comentarios
Respuesta aceptada
KSSV
el 9 de Jun. de 2020
Editada: KSSV
el 9 de Jun. de 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 comentarios
Walter Roberson
el 9 de Jun. de 2020
f = exp(x)+sin(5*x) ;
would be an error if you had not defined x before.
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!