How to set the terminal condition of the Matlab built-in function roots?
2 views (last 30 days)
Show older comments
like this.
0 Comments
Accepted Answer
Steven Lord
on 29 Jul 2020
You don't. roots builds the companion matrix and computes the eigenvalues of that matrix.
I can't see the context before that section of that paper or assignment but I'm guessing the process was to repeatedly create a polynomal coefficient vector, use roots to solve it, and stop the repetition if one / the smallest of the roots of the current coefficient vector became "small enough." That uses the output of roots as part of the temination criteria for the process, but it doesn't try to control roots itself.
More Answers (0)
See Also
Categories
Find more on Function Creation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!