Tagged: arrays

Text in String Arrays

When you are working with text, enclose sequences of characters in double quotes. You can assign text to a variable. t = “Hello, world”; If the text includes double quotes, use two double quotes...

Logical Subscripting

Matlab Logical Subscripting Tutorial The logical vectors created from logical and relational operations can be used to reference subarrays. Suppose X is an ordinary matrix and L is a matrix of the same size...

Working with 8-Bit and 16-Bit Images

8-Bit and 16-Bit Indexed Images Double-precision (64-bit) floating-point numbers are the default MATLAB representation for numeric data. However, to reduce memory requirements for working with images, you can store images as 8-bit or 16-bit...

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

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 Core Graphics Objects

Core graphics objects include basic drawing primitives: Line, text, and polygon shells (patch objects) Specialized objects like surfaces, which are composed of a rectangular grid of vertices Images Light objects, which are not visible...

Implementing a Set/Get Interface for Properties

The Standard Set/Get Interface The MATLAB Handle Graphics system implements an interface based on set and get methods. These methods enable you to set or query the value of graphics object properties. The hgsetget...