Posts

Showing posts with the label approximation value

How to get an approximately value with number data with specified polynomial in MatLab? - polyfit -- MatLab

Image
 How to  get an approximately value with number data with specified polynomial in MatLab? - polyfit -- MatLab How to  get an apprixmate value with number data with specified polynomial in MatLab? [Ans] polyfit [syntax] [<p>,<S>,<mu>] = polyfit(<x>,<y>,<n>) ; [description] [<p>,<S>,<mu>] = polyfit(<x>,<y>,<n>) ; It will return approximately value with x-axis data <x> and y-axis data <y> which is represented with degree n of the polynomial. <p> coefficient of polynomial <S> structure of polynomial <mu> population of mean in distribution more details about mu (one of Greek Letters) on: μ - Wiktionary Mu (letter) - Wikipedia statistics - How do I calculate mu and sigma? - Mathematics Stack Exchange more details on: Polynomial curve fitting - MATLAB polyfit (mathworks.com) code clear clc x = linspace(0,4*pi,10); y = sin(x); p = polyfit(x,y,7) %{ p = -0.0001 0.0028 -0.0...