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 (M-file) called plotfunc that does the following:
Receives the name of another MATLAB function as an input (e.g., user defined func01 for a function f(x)
, which calculates f(x)
).
Plots the function, including a horizontal line at f(x)=0
, so that the user can visually see the roots (see built-in function in MATLAB fplot()).
Performs the plot inside a while loop that begins with a default interval 75<=x<=75
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!