Posts Tagged ‘legend’
A GUI to Set Simulink Model Parameters Example 2
Running the Simulation from the GUI
The GUI Simulate and store results button callback runs the model simulation and stores the results in the handles structure. Storing data in the handles structure simplifies the process of passing data to other subfunction since this structure can be passed as an argument. Read More
Tags: Enable, example, find_system, gui, guidata, HandleVisibility, IntegerHandle, legend, list box, matlab, model_open, open_system, Parent, plot, Running Simulation, set_param, sim, Simulate, simulation, simulink, str2double, web
A GUI to Set Simulink Model Parameters
About the Simulink Model Parameters Example
This example illustrates how to create a GUI that sets the parameters of a Simulink® model. In addition, the GUI can run the simulation and plot the results in a figure window. The following figure shows the GUI after running three simulations with different values for controller gains.

The example illustrates a number of GUI building techniques: Read More
Tags: Click here to add the example files to the MATLAB path, Click here to copy the files to your current folder, Click here to display the GUI code file in the MATLAB Editor (read only), Click here to display the GUI in the GUIDE Layout Editor (read only), click here to open the code file in the Editor, click here to open the FIG-file in GUIDE, Click here to run the f14ex GUI, Enable, find_system, gui, GUI building, guidata, HandleVisibility, IntegerHandle, legend, list box, matlab, model, model_open, open_system, parameters, Parent, plot, set, set_param, sim, simulink, str2double, web, which
Analysis of Functions, Interpolation, Curve Fitting, Integrals and Differential Equations 2
Localize minima and maxima of functions
Let us try to find the local minima and maxima for the function func(x). The interval of interest is [-6 0]. The algorithms are iterative. There are 2 methods to use. The first one decides x in a given interval, and the second one looks for x around an initial guess. To decide the maxima we are looking for an x that minimizes the negative function: -func(x). Read More
Tags: Analysis of Functions, applications, Command Window, curve, Define, differential, end, equations, Examples, fitting, for, format, full, Functions, grid, help, hold, if, inf, info, integral, integrals, integrand, interpolation, legend, load, matlab, mesh, meshgrid, minus, plot, polynomial, rand, randn, rem, round, sign, sum, title, tutorials, ver, what
plot
plot Linear plot.
plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix,
then the vector is plotted versus the rows or columns of the matrix,
whichever line up. If X is a scalar and Y is a vector, length(Y)
disconnected points are plotted. Read More