Question: Please solve this in MATLAB and include comments and explanation. Thank you! 2) Consider the following input data: Table 1 DAT: Vis y-axis, SOC is

 Please solve this in MATLAB and include comments and explanation. Thank

Please solve this in MATLAB and include comments and explanation. Thank you!

2) Consider the following input data: Table 1 DAT: Vis y-axis, SOC is x-axis SOC 100* [O 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1]; V = [2.5 3.293 3.415 3.451 3.496 3.547 3.589 3.614 3.635 3.657 3.683 3.717 3.757 3.806 3.862 3.896 3.925 3.957 3.997 4.04 4.074 ] ; Consider y-axis Voltage M and X-axis SOC [%]. Use polyfit to: a) determine the best polynomial fit for desired order n (2, 4, 6, 8). b) determine the error between fitted and experimental data for the values of x c) determine the time to compute polyfit with different order (2, 4, 6, 8) using tic toc d) Bonus: compare the computational time versus polyfit order n (2, 4, 6, 8). e) Calculate the Voltage at 100%, 75%, 50% and 0% using fitted function with n=2, 4, 6 and 8. 3) Repeat question number 2, however consider Newton's polynomial. 4) Repeat question number 2, however consider Lagrange Polynomial

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!