Question: Create a graphical user interface that allows the user to define a row vector x = [xmin:xstep:xmax], by entering the values of xmin, xstep and
Create a graphical user interface that allows the user to define a row vector x = [xmin:xstep:xmax], by entering the values of xmin, xstep and xmax. It also should be possible to define a trigonometric Matlab function (call it theFunction), by entering its name as a string. As soon as a set of valid inputs is provided, your program should create row vector x, compute f(x) = theFunction(x) and plot f(x) over x. In addition, you are asked to display a single line of Matlab instructions in your GUI that when copied from your GUI and pasted into the Matlab command window, will create a plot identical to the one shown in your GUI graphics area.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
