Question: Write a function MyNameHW 9 Q 3 . m that will receive two input arguments: one is a one - dimensional vector, and the 2

Write a function MyNameHW9Q3.m that will receive two input arguments: one is a one-
dimensional vector, and the 2nd is a handle to a Matlab plotting function (such as plot(),
bar(), etc.).
Inside the function, the data (1st input) is plotted using the function provided in the 2nd
input argument. The name of plot function is shown as the title of the plot.
This function can have zero or 1 output argument. When one output argument is used to
call this function, the average of the input data is computed, shown as part of the figure
title, and returned as the output argument.

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 Programming Questions!