MATLAB Function Handles and Plotting

Problem: Advanced Function Handle Usage

Dual Function Plotting

Write a function plot2fuhand that will receive two function handles as input arguments and will display in two Figure Windows plots of these functions, with the function names in the titles.

The function will create an x vector that ranges from 1 to n (where n is a random integer in the inclusive range from 4 to 10).

Example Call

>> plot2fuhand(@sqrt, @exp)

If the random integer is 5, the first Figure Window would display the sqrt function of x = 1:5, and the second Figure Window would display exp(x) for x = 1:5.



For more details, please contact me here.