Subscripts

May 7th, 2010 No Comments   Posted in Functions

The element in row i and column j of A is denoted by A(i,j). For example, A(4,2) is the number in the fourth row and second column. For our magic square, A(4,2) is 15. So it is possible to compute the sum of the elements in the fourth column of A by typing Read More

Working with Images in MATLAB Graphics

May 7th, 2010 No Comments   Posted in Documents

What Is Image Data?

The basic MATLAB data structure is the array, an ordered set of real or complex elements. An array is naturally suited to the representation of images, real-valued, ordered sets of color or intensity data. (An array is suited for complex-valued images.) Read More

Stream Line Plots of Vector Data

May 2nd, 2010 No Comments   Posted in Examples

Wind Mapping Data

The MATLAB vector data set called wind represents air currents over North America. This example uses a combination of techniques: Read More

Displaying Curl with Stream Ribbons

May 2nd, 2010 No Comments   Posted in Examples

What Stream Ribbons Can Show

Stream ribbons illustrate direction of flow, similar to stream lines, but can also show rotation about the flow axis by twisting the ribbon-shaped flow line. The streamribbon function enables you to specify a twist angle (in radians) for each vertex in the stream ribbons. Read More

Matlab GUIDE: Getting Started

May 2nd, 2010 No Comments   Posted in Documents

GUI Layout

GUIDE, the MATLAB graphical user interface development environment, provides a set of tools for creating graphical user interfaces (GUIs). These tools simplify the process of laying out and programming GUIs.

Using the GUIDE Layout Editor, you can populate a GUI by clicking and dragging GUI components—such as axes, panels, buttons, text fields, sliders, and so on—into the layout area. You also can create menus and context menus for the GUI. From the Layout Editor, you can size the GUI, modify component look and feel, align components, set tab order, view a hierarchical list of the component objects, and set GUI options. Read More

A GUI to Set Simulink Model Parameters Example 2

May 2nd, 2010 No Comments   Posted in Examples

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

A GUI to Set Simulink Model Parameters

May 2nd, 2010 No Comments   Posted in Examples

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