I want to find multiple zeros from a function.

조회 수: 21 (최근 30일)
Ari Julius
Ari Julius 2022년 2월 3일
편집: Matt J 2022년 2월 3일
I have a function and need to find the values where it is equal to 1. I used vpasolve to approxiamte those values, but now I am asked to find the exact using the "fzero" function, but I do not know how to use it well, let alone multiple times.

답변 (1개)

Matt J
Matt J 2022년 2월 3일
편집: Matt J 2022년 2월 3일
Youc annot make fzero find multiple roots in a single call. However, you can call it multiple times and ask it to search different intervals. To have it search a specific interval [a,b], use the syntax,
fzero(fun,[a,b])

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by