I need this Matlab code due to 12-11 please answer!!

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

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.

Sign in to comment.

Categories

Asked:

on 10 Dec 2018

Edited:

on 11 Dec 2018

Community Treasure Hunt

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

Start Hunting!