Input argument
조회 수: 10 (최근 30일)
이전 댓글 표시
function y = f1(x)
% A univariate function with a simple zero
syms x
y = cos(x) - x;
r = fzero('f1', 0.5)
It gives the following error
Error in ==> oct3 at 5 r = fzero('f1', 0.5) >>
댓글 수: 0
답변 (2개)
Walter Roberson
2011년 11월 2일
Why is the error in the file oct3 when all you show us is the file f1 ?
What is the error message you are getting?
참고 항목
카테고리
Help Center 및 File Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!