Polyfit isn't returning linear gradient and intercept
Ältere Kommentare anzeigen
testx = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
testy =[4, 6, 8, 10, 12, 14, 16, 18, 20, 22]
[PolyCoeff, S, mu] = polyfit(testx, testy, 1)
So my question is - why isn't PolyCoeff returning (1) as 2, and (2) as 2? Where are 6 and 13 coming from? am I missing something really silly and obvious?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Morphological Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!