Question: Please solve using matlab and post the code used (please only solve question 4, question 2 is only there for reference) Question 4: Repeat question

Please solve using matlab and post the code used

(please only solve question 4, question 2 is only there for reference)

Question 4: Repeat question number 2, however consider Lagrange Polynomial

Please solve using matlab and post the code used (please only solve

2) Consider the following input data: Table 1 DAT: V is y-axis, SOC is x-axis SoC = 100*[0 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 [V] 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

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!