I need this Matlab code due to 12-11 please answer!!
Show older comments
Use polynomial fitting and graph up to 8th order polynomials Write a function that finds the roots and marks the roots as red circles on the graph.
f (x) = ax7 + bx6 + cx5 + dx4 + ex3 + fx2 + gx + h
Input variables should be up to 8 inputs and less input.
For example, if you call a function with four input variables a, b, c, and d
f (x) = ax3 + bx2 + cx + d
Graph the cubic polynomial, print the roots, and mark the graph with a red circle. Please submit the filename as polynroot.m.
1 Comment
Steven Lord
on 10 Dec 2018
This sounds like a homework assignment. If you show us what you've tried to do to to solve this problem and ask a specific question about where you're having difficulty we may be able to offer some guidance.
Answers (1)
madhan ravi
on 10 Dec 2018
doc roots
doc coeffs
doc syms
Categories
Find more on Spline Postprocessing 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!