Programming Fundamentals


The MATLAB® application is a high-level language that includes matrix-based data structures, its own internal data types (or classes), an extensive catalog of functions, an environment in which to develop your own functions and scripts, the ability to import and export to many types of data files, object-oriented programming capabilities, and interfaces to external technologies such as COM, Sun™ Java™, programs written in C and Fortran, and serial port devices. This book presents the MATLAB programming features and techniques in the following chapters:

Matrices and ArraysIntroduces the basic data structures used in MATLAB®: the two-dimensional matrix and multidimensional array (plus scalar, vector, and empty matrices), and describes how to construct and work with these classes.
Built-In Classes (Data Types)Presents the types of data used in MATLAB®: numeric, logicals, characters, dates, structures, cell arrays, function handles, and object-oriented classes.
Basic Program ComponentsPresents the principal building blocks used in MATLAB® programming: variables, keywords, special values, operators, expressions, regular expressions, comma-separated lists, control statements, symbols, and the extensive set of functions provided with MATLAB®.
Functions and ScriptsDescribes the overall process of developing programs in MATLAB®. This chapter shows you how to work with M-files to create scripts and functions. It describes the various types of functions you can create, how to make calls to functions, handle argument data, and use function handles.
Types of FunctionsDescribes the various types of functions you can work with in MATLAB®. These include the primary function, subfunctions, nested functions, anonymous functions, overloaded functions, and private functions.
Data Import and ExportExplains how to import and export data between MATLAB® and the many different types of data files supported by MATLAB® (including text, spreadsheet, graphics, and audio/video files, files formatted for scientific data, and files you might want to exchange over the Internet
Scientific Data File FormatsAccess data stored in scientific formats such as HDF4, HDF5, CDF, and FITS.
Error HandlingDescribes how to put error checking into your programs, and how to identify, handle, and possibly recover from errors that occur. It also explains how to use message identifiers to better identify the source of an error, and how to selectively display or ignore warning messages.
Program SchedulingDescribes how to use the MATLAB® Timer object to schedule program execution
PerformanceExplains techniques you can use to get the best performance from your M-file programs. This includes information on MATLAB® tools that measure the performance of your programs and identify where the bottlenecks are.
Memory UsageExplains techniques you can use to get the most efficient memory usage from your M-file programs. This includes information that advises what to do if you get an "Out of Memory" error.
Programming TipsProvides 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.
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS