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!