PROFESSIONAL ACADEMIC STUDY RESOURCES WEBSITE +1 813 434 1028 proexpertwritings@hotmail.com
Project-1 Use ChatGPT to write MATLAB programs
Description
Use ChatGPT to write MATLAB programs to:
1) Plot the following function:
x(t) =
cos(πt) −1 ≤ t < 0
2t2 0 ≤ t ≤ 1
2 1 ≤ t < 2
1 − cos ( 2πt
3
) 2 ≤ t ≤ 3
0 elsewhere
2) Calculate the following integrals using Simpson’s rule both by a MATLAB code and manually then
compare the results:
I1 =
∫ 3
1
x(t)dt
I2 =
∫ 3
2.5
tx(t)dt
I3 =
∫ 3
2
sin(πt)x(t)dt
Important Note: You are not allowed to use any MATLAB built-in functions. You need to write the
codes (with the help from ChatGPT) from scratch.
Deliverable: You need to write a report and explain, in detail, the algorithm that is used and the results.
The report should not be more than 5 pages.
Plagiarism: All reports will be similarity checked with each other and with all content in the internet
by Turnitin. Students who plagiarize will receive zero in the course and will also be reported to the
university for further disciplinary actions.