Programming in MATLAB
1. MATLAB(R) ENVIRONMENT MATLAB as a Calculator / Defining Variables / Functions / Display Formats / Saving the Variables Stored in Memory / Predefined Variables / Complex Numbers / Matrices and Vectors / Strings / Input and Output Statement / Plotting in MATLAB / MATLAB Help Facilities / MATLAB Script Files 2. CONTROL FLOW If-end / If-else-end / Else-if / Switch-case / for-loops / while-loops 3. FUNCTIONS General Structure of a Function / Scope of Variables / Passing Parameters / The Return Statement / Global Variables / NARGIN and NARGOUT / Recursive Functions / Problems 4. MATRICES AND ARRAYS Arrays in MATLAB / Addressing Arrays / Examples of Using Arrays / Designing MATLAB Functions to Handle Array Inputs / Dynamic Arrays 5. FILE INPUT AND OUTPUT Opening and Closing Files / Writing Formatted Output to Files / Reading Formatted Data from Files / Writing and Reading Binary Files / Exchanging Data with Other Programs - Comma Separated Files 6. MISCELLANEOUS MATLAB(R) FUNCTIONS AND VARIABLES Time, Date, and Execution Time / Evaluation / NARGIN and NARGOUT / Pause / Sound / SPRINTF 7. PLOTTING IN MATLAB(R) Basic Two-Dimensional Plots / Line Styles, Markers, and Colors / Plot Color / Grid / The Axis Command / Placing Text on a Plot / Obtaining Numerical Values from a Plot / Various MATLAB 2-D Plot Types / Handle Graphics for Manipulating Plots 8. MATLAB(R) APPLICATIONS Polynomials in MATLAB / Curve Fitting / Solving Equations / Numerical Integration / Differential Equations / Problems / INDEX