Higher Education

Programming in MATLAB®, 1st Edition

  • Marc E. Herniter Northern Arizona University
  • ISBN-10: 0534368808  |  ISBN-13: 9780534368807
  • 464 Pages
  • © 2001 | Published
  • College Bookstore Wholesale Price = $91.50

About

Overview

Perfect for use in a lab or by individuals, PROGRAMMING IN MATLAB® is designed to help anyone interested in electrical and computer engineering develop programming skills using MATLAB® as the programming language. The text is also applicable for those interested in utilizing MATLAB® in industry. MATLAB® is quickly surpassing C, BASIC, and Fortran in engineering departments as the programming language of choice (due to the many functions and toolboxes the program features). It allows the many students who use it to write complex programs to solve a variety of technical problems efficiently. Herniter offers a straightforward approach to learning the program, and assumes no prior exposure to MATLAB®. The book offers comprehensive instructions for programming in MATLAB®, including specific output results and numerous MATLAB® screen captures. Its use is ideal in a lab/lecture setting where readers can recreate examples and complete problem assignments. However, the text organization is also appropriate for use as a general reference guide for programming MATLAB®. Herniter introduces fundamental programming skills, then moves into solving basic problems using built-in MATLAB® functions, and finally into solving engineering problems using MATLAB®.

Table of Contents

1. MATLAB® 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® FUNCTIONS AND VARIABLES
Time, Date, and Execution Time / Evaluation / NARGIN and NARGOUT / Pause / Sound / SPRINTF
7. PLOTTING IN MATLAB®
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® APPLICATIONS
Polynomials in MATLAB / Curve Fitting / Solving Equations / Numerical Integration / Differential Equations / Problems / INDEX

Meet the Author

Author Bio

Marc E. Herniter

Dr. Marc E. Herniter is a professor at Rose-Hulman Institute of Technology. Dr. Herniter earned his BSEE and BA Physics in 1983 from Boston University, and his Ph.D. in 1989 from the University of Michigan. He has taught at Northern Arizona University, Wichita State University, acted as Chief Engineer at Fire, Wind, and Rain Technologies, as well as being consultant to Connect Tech International and Coffelt Manufacturing.