Programming and Data Types

Programming and Data Types


MATLAB® is a high-level language that includes data structures, functions, control flow statements, input/output, and object-oriented capabilities. This section presents the MATLAB programming features and techniques in the following chapters:
M-File Programming
Describes language constructs and how to create MATLAB programs (M-files). It covers data types, flow control, array indexing, optimizing performance, and other topics.
Character Arrays (Strings)
Covers MATLAB support for string data, including how to create character arrays and cell arrays of strings, ways to represent strings, how to perform common string operations, and conversion between string and numeric formats.
Multidimensional Arrays
Discusses the use of MATLAB arrays having more than two dimensions. It covers array creation, array indexing, data organization, and how MATLAB functions operate on these arrays.
Structures and Cell Arrays
Describes two MATLAB data types that provide hierarchical storage for dissimilar kinds of data. Structures contain different kinds of data organized by named fields. Cell arrays consist of cells that themselves contain MATLAB arrays.
Function Handles
Describes how to use the MATLAB function handle to capture certain information about a function, including function references, that you can then use to execute the function from anywhere in the MATLAB environment.
MATLAB Classes and Objects
Presents the MATLAB object-oriented programming capabilities. Classes and objects enable you to add new data types and new operations to MATLAB. This section also includes examples of how to implement well-behaved classes in MATLAB.
Maximizing MATLAB Performance
Explains techniques you can use to get the best performance and most efficient memory usage from your M-file programs. This includes a description of MATLAB performance acceleration, and explains what coding practices give you the greatest benefit from acceleration. This section also covers the MATLAB Profiler, and shows how to use this utility to measure and improve the performance of your programs.
MATLAB Programming Tips
Provides a resource for the MATLAB programmer to pick up hints on helpful and time-saving practices. This section covers a wide range of topics, and attempts to address questions often raised by intermediate to experienced MATLAB users.

Related Information

The following sections provide information that is also useful to MATLAB programmers. This documentation is available in MATLAB online help.


 M-File Programming