how to find minimumvalue in discontinuous function??
이전 댓글 표시
In this function,
absohandle=@(t)-abs(exp(t).*(1.0./2.0)-2.0)
I want to find minimum function value in the range 0<=t<=2.... so i used fminbnd like this.
[minimumposition, minimumfunctionvalue]=fminbnd(absohandle,0,2)
But the result is false.
In matlab's result is minimumposition=4.8379e-05 minimumfunctionvalue=-1.5000
but the true result is minimumposition=2 minimumfunctionvalue=-1.6945
In this situation, how to modify my code???
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 영상 필터링에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!