Running into error using "inline" and "euler"
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
Walter Roberson
2018 年 2 月 11 日
"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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!