Question: You are going to create an interactive plotting program where various curves are presented. The User will be able to select a region to magnify;
You are going to create an interactive plotting program where various curves are presented.
The User will be able to select a region to magnify; curves will be broken out to make them
easier to examine. The User will also be able to choose the colors and possibly other
attributes for each of the curves. The program will consist of various Matlab commands to
create and store the data,
retrieve margins and plot the data, and
control and display the data within the plots.
The plots may be of various typesstyles
The Matlab commands will be organized into three files named exactly as specified above:
a setup script that creates the GUIs controls and initial plots
a script to retrieve plotting bounds and
a script to plot the data script is linked to several controls within the GUI
CISC Lab M
The setup script is executed once, creating the controls for the GUI.
The second script is executed to get limits on for a plots X axis.
The third script is executed each time the user interacts with one of the GUI controls.
There are several requirements for the GUI as will be discussed in class.
Multiple plots and controls are to be used:
initially plots are drawn with default limits
subsequently, boundaries are selected defining the region to magnify
the boundaries are to be selected by the User using graphical inputs
the final layout of the GUI will have plots containing
the complete set of curves ie sine cosine, and estimate of sine integral
the negative cosine and estimate magnified
one isolated curve eg sine and
another isolated curve eg cosine
Determine the layout of the interface including the plots and all of the controls.
This layout can easily be sketched out on paper.
You will need the following:
create a figure window;
consider deletingclearing all old data;
create a QUIT button to close the GUIfigure window;
create vectors of independent and dependent data to be plotted;
create a first plot of the data in the window as well as those specified below;
create two additional plots sine and cosine with labelling as appropriate;
create an text control to display the left and right boundaries;
create a fourth plot of the cosine and integral estimate with the user specified limits;
create a popuppulldown menu control to alter the sine line specification;
create a popuppulldown menu control to alter the cosine line specification;
create a popuppulldown menu control to alter the estimate line specification;
create labels identifying each of the controls;
Ensure that each of the controls has a reasonable initial value.
It will be necessary to position the plots either directly or with a command such as subplot to
make room for the other plots as well as controls. If using the subplot command, be careful to
avoid overlap.
You may add any other controls or ornamentation desired.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
