Undefined function 'eval' for input arguments of type 'double'.
古いコメントを表示
When using the code below:
function [Df]=difc(f,u,h)
syms x
x=u+h; lp=eval(f);
x=u-h; ll=eval(f);
Df=(lp-ll)/(2*h);
end
, the same error keeps appearing ''Undefined function 'eval' for input arguments of type 'double'.''
I would like to know what´s the problem and what can I do to solve it, in order to have a working code.
Thankyou very much
2 件のコメント
Walter Roberson
2012 年 11 月 8 日
What are you passing in to the function?
Note: your assignments to "x" are undoing the effect of "syms x".
Ana Luisa
2012 年 11 月 8 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!