Question: I only need help on doing number 4 LON-CAPA COurse ConSSOE-First ear-SprirASSGT9 (1)pd softEdge elackboard Conter 4d Metro Boomin No mpstate/Downloads/ASSGT9%20(1) pdf Users/april/AppData/Local/Pac Your task:

I only need help on doing number 4  I only need help on doing number 4 LON-CAPA COurse ConSSOE-First

LON-CAPA COurse ConSSOE-First ear-SprirASSGT9 (1)pd softEdge elackboard Conter 4d Metro Boomin No mpstate/Downloads/ASSGT9%20(1) pdf Users/april/AppData/Local/Pac Your task: Design, code, and debug a MATLAB script that: (1) Asks the user (use a nenu) what kind of function (m-file or anonymous function) will be used. If an m-file, have the user enter the filename; if an anonymous function, have the user enter the function (hint: use MATLAB's eval function in your script to appropriately assign these tasks to desired variables) C) Calls a user-defined function (ie, m-file) that requests the user to enter the domain of interest (i.e., the start and end point of the plot), and produces an annotated plot (ie, a plot with appropriate labels) of the mathematical function in the desired domain. Use MATLAB'sfd a command G) Displays a ne au asking the user what type of analysis they wish to perform; choices are finding the mathematical function's zeros, minima, maxima, or area under the curve Uses a s wit ch case structure (with the nenu response as its expression) to: (a) Call a user-defined function that finds as many zeros as the user desires and displays (b) Call a user-defined function that finds as many minima as the user desires and (4) the location of each zero to the screen. Use MATLAB'sfer o command displays the location of each minimum to the screen. Use MATLAB's f Ii nbnd command (c) Call a user-defined function that finds as many maxima as the user desires and displays the location of each maximum to the screen. Use MATLAB's f imnbnd command. Note that you need to use the negated function for this step, make sure that you ask for this function in step 1 d) Within the main script, find the area under the curve between two points entered by the user. Give the user the option of using either the trapz or quad methods (5) Allow the user to select as many functional analyses as they desire (i.e., return to step 3) (6) Allow the user to run the program as many times as they desire (i.e, return to step 1)

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!