first two inputs must have the same number of elements error(hw deadline soon)

6 views (last 30 days)
when i used polyfit it gives error like The first two inputs must have the samenumber of elements error.I share my code please how can i fix? .

Answers (1)

Star Strider
Star Strider on 21 Nov 2021
Check the code to be certain that the first two input arguments are the same length.
If they are not, change the code so that they are.

Categories

Find more on Polynomials 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!