Matlab
ECE 309 Project #3 Page 1 of 2
Cover-sheet: MATLAB Project 3 – Curve Fitting
Student name: ________________________________________
Preliminary Preparation Calculation (handwritten or typed; show derivation):
2b. KVL Diff. Eq v(t): ___________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
2c. = ______
Procedure, Part 1.1: Least-Squares Fit for Polynomials
Testing the m-file, Part 1.1.B:
Least-squares fit equation obtained for the physics experiment (Question 1, p. 2):
y = _________________________________
Sum of squared errors for the physics experiment: __________________
Calculated values for parameter estimates, based on experimental data:
a = ________ vi = ________ yi = ________ (from Question 2, p.3)
Procedure, Part 1.2: Curve Fitting with Constrained Polynomials
Least-squares fit equation obtained for the physics experiment (Question 2, p. 3):
d = _________________________________
Calculated values for parameter estimates, based on experimental data:
E = ________ D = ______ (from Question 3, p. 3)
Procedure, Part 2: Curve Fitting for Exponential Functions
v(t) = __________ (least-squares fit for voltage in the RC Circuit)
Estimate for : ______; estimate for V0: ___________; Calculate C: _________
(Do not submit this page.)
Attach to the cover sheet, in the order specified:
Procedure, Part 1: Your function m-file, pnfit, followed by the Part 2[footnoteRef:1] test results: [1: This is the physics free-fall experimental data. ]
· MATLAB’s output:
·
· the plot showing the experimental data and the least-squares fit for the data (with a grid and appropriate axis labels and a title); and
· a separate single page (labeled Procedure, Part 1) with your paragraph and table comparing the experimental and theoretical results for the parameters;
Procedure, Part 3: Your function m-file, myexpfit, and the plot (with a grid and appropriate axis labels and a title) for the least-squares fit voltage v(t) across the capacitor in the RC circuit.
· Be sure that your flow chart is neat; allow (at least) a full page for the flow chart.
Do not include your own personal test data or your test drive programs.
y
ˆ