Question: Write a MATLAB code ( M - file ) called plotfunc that does the following: Receives the name of another MATLAB function as an input
Write a MATLAB code Mfile called plotfunc that does the following:
Receives the name of another MATLAB function as an input eg user defined func for a function fx
which calculates fx
Plots the function, including a horizontal line at fx
so that the user can visually see the roots see builtin function in MATLAB fplot
Performs the plot inside a while loop that begins with a default interval x
and keeps asking the user for new interval limits until the user is satisfied and the loop ends.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
