Question: Assume these variables are already defined: X list - list of x values Y list-list of y values x-single x value Write a MATLAB code
Assume these variables are already defined: X list - list of x values Y list-list of y values x-single x value Write a MATLAB code segment that uses nlinfit to determine the best fit curve for the points in X Jlist and Y_Jlist according to this equation where A, B, and C are constants. Use initial guesses of A 1, B-2, and C -o. Your results should be stored in a structure named fitData with the following fields: x : value of x Y : value of the equation evaluated at X A i coefficient A B : coeeficient B C : coefficient C Example: clear all: ele; fornet conpacts format shart s xlist 1, 3, 5, 7, 91 list I 4.3854, 3.7485,S.4772, 9.036, 15.68 J: x-12, % your code here 86 fitData Should display this result in the command window fstData x: 12 37-330 1-8003 B: 2.2001 A: Your code should work for any set of starting values. Do not include test cases, clear all, etc as part of your submission
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
