-
2 Comments
Zhengyi
on 2 Feb 2018
Will not solution like this be sooo much slower than simple loops?! Short yes, efficient no.
Zhengyi
on 2 Feb 2018
well, I think I was wrong...This solution is slower if the degree of the polynomial is small but much faster if the degree gets higher...solving polynomials of high degree is really slow with ROOTS.
Suggested Problems
-
1253 Solvers
-
713 Solvers
-
Set the array elements whose value is 13 to 0
1377 Solvers
-
272 Solvers
-
1017 Solvers
More from this Author4
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!