calculated f(x) with a specific point x

8 visualizzazioni (ultimi 30 giorni)
valerio
valerio il 28 Ott 2013
Modificato: Andrei Bobrov il 28 Ott 2013
Hallo can anyone help me? If I've a specific point x ,how to calculated f(x) with matlab ? for example : f='exp(x).^(2-x.^(2))-(2/(3+5*x))'; x= 3/2; how calculated f(x) ?

Risposte (1)

Andrei Bobrov
Andrei Bobrov il 28 Ott 2013
Modificato: Andrei Bobrov il 28 Ott 2013
f=@(x)exp(x.*(2-x.^2))-2./(3+5*x);
x = 3/2;
out = f(x);
Please read about anonymous functions

Community Treasure Hunt

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

Start Hunting!

Translated by