The text is written for Junior or Senior students in science or engineering programs and assumes the reader has completed two years of college course work. The text emphasizes interactive learning by presenting all new functions and commands in nearly 700 worked Examples. MATLAB is an interpretive, function based language that allows easy experimentation with short program fragments. Students type a single or few MATLAB statements from the Examples on the command line; the text explains the results in clear and concise language. As the student progresses through the material, these command line Examples are collected into scripts, which are complete MATLAB programs.
The outline of the course follows traditional programming books: Chapter 1 discusses computer languages and computer hardware. Chapter 2 describes the MATLAB programming environment for the PC including the MATLAB Command Window, the Editor, and Help system. Chapter 3 introduces number systems: binary, hexadecimal and octal and explains their application to computer programming. Chapter 4 discusses MATLAB data types: floating-point double precision, character, and integer. Chapter 5 describes the use of vectors which are one-dimensional matrices that are the heart of MATLAB.
Each chapter includes several programming Exercises, because as is emphasized throughout the text,
"Programming is Not a Spectator Sport"
Creating MATLAB programs is introduced in Chapter 6 through a succession of simple to more powerful scripts, which are collections of MATLAB statements. Chapter 7 introduces repetition using the for ... end loop, and Chapter 8 treats the 2-dimensional matrix which was central to MATLAB's development as a "matrix laboratory". While using basic instructions, Chapter 9 illustrates the structured, organized approach to program development.
The student is encouraged to use the powerful MATLAB command line environment to test program statements before committing them to the program file, and MATLAB graphics are presented at an early stage as an enticement to continue. The text waits until Chapters 10 and to introduce conditional and relational operators used to construct loops.
Functions in Chapter 12 constitute what may be considered to be the heart of the book. The function is the only subprogram unit in MATLAB. This, the absence of a "goto" statement, and the while statement discussed in Chapter 11 make MATLAB a great teaching language.
Chapter 13 is devoted to the single function, fprintf, which is very much like its C counterpart. The following chapter introduces the char variable type, and the excellent MATLAB text processing function library. "Great Graphs" in Chapter 15 examines the plot function which is perhaps the single most important reason why MATLAB has "caught-on" with science and engineering professionals. The chapter illustrates the process and data types used to create line graphs, images.
In Chapters 16 and 17 the book introduces the process of reading a writing data files. Chapter 16 is devoted to text or ASCII files, while the next concerns binary files. Chapter 17 concludes with a "Case Study"; a program called "hexd
