I want to find multiple zeros from a function.

21 vues (au cours des 30 derniers jours)
Ari Julius
Ari Julius le 3 Fév 2022
Modifié(e) : Matt J le 3 Fév 2022
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.

Réponses (1)

Matt J
Matt J le 3 Fév 2022
Modifié(e) : Matt J le 3 Fév 2022
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])

Catégories

En savoir plus sur Problem-Based Optimization Setup dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by