Error using symengine, Too many input arguments, x= xf; fx = funfcn(x,varargin{:});
Afficher commentaires plus anciens
Hi,
could anyone help me with this problem?
I have this code:
a = 1;
b = 1;
c = 1;
d = 1;
e = 1;
f = 1;
func = @(x)(a.*x.^2 + b.*x + c)./(d.*x.^2 + e.*x + f);
syms y;
f_sym = (a.*y.^2 + b.*y + c) ./ (d.*y.^2 + e.*y + f);
df(y) = diff(f_sym, 2);
formulation = matlabFunction(formula(df));
minbnd = fminbnd(formulation, 0, 3);
And I get this error:
Error using symengine>@()0.0
Too many input arguments.
---
Error in fminbnd (line 232)
x= xf; fx = funfcn(x,varargin{:});
---
Error in Project (line 128)
minbnd = fminbnd(formulation, 0, 3);
Thanks for your help :)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!