Develop a Matlab function myFitExam that finds the best fit of the function p(t) = a 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.

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
Question
Develop a Matlab function myFitExam that finds the best fit of the function
p(t) = a 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.
Transcribed Image Text:Develop a Matlab function myFitExam that finds the best fit of the function p(t) = a 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.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY