필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

finding zero points of a function without using the fzero built in function

조회 수: 1 (최근 30일)
hello guys I'm trying to solve a problem in which I'm supposed to find the 'x' points where y is zero.( y is assumed to be zero when abs(y) < 1e-10). function x0 = find_zero(f,x1,x2). 'f' is supposed to be a function handle and the built-in function fzero is not supposed to be used . I've used various plot function but they are gave me wrong answers. i used find(abs(y)<1e-10) but didn't work. any idea on how to tackle this? thanks
  댓글 수: 2
John D'Errico
John D'Errico 2016년 6월 13일
So, you NEVER discussed anything about rootfinding in class? About how to solve problems of this sort? Your book has nothing to say on the subject? Nothing in your notes? Nobody even mentioned things as trivial as bisection? Wow! Your teacher must be really mean. They just threw you into the water and expected you to swim!
Somehow, I doubt that. MAKE AN EFFORT! Sit down and think about how to write a code like bisection. Surely you can find a basic algorithm for that? Google is your friend.
OLUBUKOLA ogunsola
OLUBUKOLA ogunsola 2016년 6월 13일
well, i am not a student and no teacher has been mean to me, i delved into matlab out of interest and my approach has been to jump down the cliff and grow wings on the way down . i did google this and i saw many links on roots but they didn't make sense to me and this is the first time of hearing about bisecting. thanks for the info anyway. I won't let this discourage me .

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by