Problem 1/MatlabGrader (20 points) (Core Course Outcome 4) Develop a Matlab function myFitExam that finds the best fit of the function p(t) = as sin³ (t) + b sin² (t) + csin(t) + d (1) to a given set of data points (ti, pi) using regression. Here t is in radians. The function input shall be ⚫t: column vector of data values t ⚫ p: column vector of data values p The function output shall be • a: scalar containing the best fit coefficient a b: scalar containing the best fit coefficient b c: scalar containing the best fit coefficient c d: scalar containing the best fit coefficient d In the function use only functions developed in this class in modules 1 - 4. You do not need to provide these functions in your submission. They will be provided when assessing your function after the deadline. Note: no assessments will be performed on your submitted function before the exam deadline. Scores on Canvas for this problem before the exam has been fully graded are meaningless. Required submission: ☐ well commented function source code submitted to Matlab Grader using the Canvas link for Exam 4 - Problem 1 Problem 2 (15 points) (Core Course Outcome 4) Consider the following unsorted table of measured data points (ti, pi): t 1/4 1 6 5 2 1/2 7/2 р 1/2 1 1 -1 3/2 1 -2/3 Use your function myFit Exam from problem 1 to determine the coefficients a, b, c, and d in p(t), see Eq. (1), that best fit the data. Print the coefficients with at least 7 significant digitis. Required submission: ☐ printout of script source code used to solve this problem in your Gradescope submission; printout of coefficients with at least 7 significant digits in your Gradescope submission;
Problem 1/MatlabGrader (20 points) (Core Course Outcome 4) Develop a Matlab function myFitExam that finds the best fit of the function p(t) = as sin³ (t) + b sin² (t) + csin(t) + d (1) to a given set of data points (ti, pi) using regression. Here t is in radians. The function input shall be ⚫t: column vector of data values t ⚫ p: column vector of data values p The function output shall be • a: scalar containing the best fit coefficient a b: scalar containing the best fit coefficient b c: scalar containing the best fit coefficient c d: scalar containing the best fit coefficient d In the function use only functions developed in this class in modules 1 - 4. You do not need to provide these functions in your submission. They will be provided when assessing your function after the deadline. Note: no assessments will be performed on your submitted function before the exam deadline. Scores on Canvas for this problem before the exam has been fully graded are meaningless. Required submission: ☐ well commented function source code submitted to Matlab Grader using the Canvas link for Exam 4 - Problem 1 Problem 2 (15 points) (Core Course Outcome 4) Consider the following unsorted table of measured data points (ti, pi): t 1/4 1 6 5 2 1/2 7/2 р 1/2 1 1 -1 3/2 1 -2/3 Use your function myFit Exam from problem 1 to determine the coefficients a, b, c, and d in p(t), see Eq. (1), that best fit the data. Print the coefficients with at least 7 significant digitis. Required submission: ☐ printout of script source code used to solve this problem in your Gradescope submission; printout of coefficients with at least 7 significant digits in your Gradescope submission;
Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
Related questions
Question
100%
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY