Running into error using "inline" and "euler"

1 visualización (últimos 30 días)
Daniel Hogan-Bohr
Daniel Hogan-Bohr el 11 de Feb. de 2018
Respondida: Walter Roberson el 11 de Feb. de 2018
Im trying to run this code:
f=inline('2*y','t''y');
t=linspace(0,.5,100); y=3*exp(2*t);
[t50,y50]=euler(f,[0,.5],3, 50);
I get the error "Undefined function 'euler' for input arguments of type 'inline'."
Any idea how to fix this?

Respuestas (1)

Walter Roberson
Walter Roberson el 11 de Feb. de 2018
"euler(n) returns the nth Euler number.
euler(n,x) returns the nth Euler polynomial."
That is the only euler() function provided by Mathworks, and it does not accept four arguments.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by