Matlab and Simulink Tutorials Blog

Matlab Image Types

Indexed Images An indexed image consists of a data matrix, X, and a colormap matrix, map. map is an m-by-3 array of class double containing floating-point values in the range [0, 1]. Each row...

The Colon Operator

The colon, :, is one of MATLAB’s most important operators. It occurs in several different forms. The expression 1:10 is a row vector containing the integers from 1 to 10 1 2 3 4...

Subscripts

Subscripts Command 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)...

Working with Images in MATLAB Graphics

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...

Stream Line Plots of Vector Data

Wind Mapping Data The MATLAB vector data set called wind represents air currents over North America. This example uses a combination of techniques: Stream lines to trace the wind velocity Slice planes to show...

Displaying Curl with Stream Ribbons

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...

Matlab GUIDE: Getting Started

Matlab Getting Started 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...