calculated f(x) with a specific point x

2 次查看(过去 30 天)
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) ?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Time Series 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by