Tasks - Matlab - Project - Calculus II - Spring - 23
Tasks - Matlab - Project - Calculus II - Spring - 23
Spring 2023
Please complete the following tasks and submit your results in a report to: [email protected]
Consider the graphs of the functions 𝑓(𝑥) = 2𝑚 − 𝑥 and 𝑔(𝑥) = 2𝑥 2 − 𝑛 where 𝑚 and 𝑛
are the maximum and mean values of the digits in your student-ID number.
a) Create a vector v whose elements are the digits of your student-ID number.
b) Create a variable m and assign the maximum digit in v to it.
c) Create a variable n and assign the mean value of the digits in v to it.
d) Define the function f(𝑥) and g(𝑥) above as anonymous functions.
e) Plot the graphs of f(𝑥) and g(𝑥) on the same figure using the MATLAB function
ezplot.
f) Find the exact values of the 𝑥-coordinates of the intersection points between the two
graphs using the MATLAB function solve.
g) Find the area bounded by the two graphs.
where 𝑚 and 𝑛 are the maximum and mean values of the digits in your student-ID number.