did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780534424176

MATLAB Programming for Engineers

by
  • ISBN13:

    9780534424176

  • ISBN10:

    0534424171

  • Edition: 3rd
  • Format: Paperback
  • Copyright: 2004-08-12
  • Publisher: CL Engineering
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $236.66 Save up to $1.18
  • Buy New
    $235.48
    Add to Cart Free Shipping Icon Free Shipping

    USUALLY SHIPS IN 24-48 HOURS

Supplemental Materials

What is included with this book?

Summary

Emphasizing problem-solving skills throughout this very successful book, Stephen Chapman introduces the MATLAB? language and shows how to use it to solve typical technical problems. The book teaches MATLAB? as a technical programming language showing students how to write clean, efficient, and well-documented programs. It makes no pretense at being a complete description of all of MATLAB?'s hundreds of functions. Instead, it teaches students how to locate any desired function with MATLAB?'s extensive on line help facilities. Overall, students develop problem-solving skills and are equipped for future courses and careers using the power of MATLAB?.

Table of Contents

Chapter 1 Introduction to MATLAB 1(20)
1.1 The Advantages of MATLAB
2(1)
1.2 Disadvantages of MATLAB
3(1)
1.3 The MATLAB Environment
3(14)
The MATLAB Desktop
4(1)
The Command Window
4(2)
The Command History Window
6(1)
The Start Button
7(1)
The Edit/Debug Window
7(1)
Figure Windows
8(2)
Docking and Undocking Windows
10(1)
The MATLAB Workspace
11(1)
The Workspace Browser
12(1)
Getting Help
13(1)
A Few Important Commands
14(1)
The MATLAB Search Path
15(2)
1.4 Using MATLAB as a Scratch Pad
17(1)
1.5 Summary
18(1)
MATLAB Summary
19(1)
1.6 Exercises
19(2)
Chapter 2 MATLAB Basics 21(64)
2.1 Variables and Arrays
21(4)
2.2 Initializing Variables in MATLAB
25(6)
Initializing Variables in Assignment Statements
25(3)
Initializing with Shortcut Expressions
28(1)
Initializing with Built-In Functions
29(1)
Initializing Variables with Keyboard Input
29(2)
2.3 Multidimensional Arrays
31(4)
Storing Multidimensional Arrays in Memory
33(1)
Accessing Multidimensional Arrays with One Dimension
33(2)
2.4 Subarrays
35(3)
The end Function
35(1)
Using Subarrays on the Left-Hand Side of an Assignment Statement
36(1)
Assigning a Scalar to a Subarray
37(1)
2.5 Special Values
38(2)
2.6 Displaying Output Data
40(3)
Changing the Default Format
40(1)
The disp function
41(1)
Formatted Output with the fprintf Function
41(2)
2.7 Data Files
43(2)
2.8 Scalar and Array Operations
45(5)
Scalar Operations
46(1)
Array and Matrix Operations
46(4)
2.9 Hierarchy of Operations
50(3)
2.10 Built-in MATLAB Functions
53(1)
Optional Results
53(1)
Using MATLAB Functions with Array Inputs
53(1)
Common MATLAB Functions
54(1)
2.11 Introduction to Plotting
54(10)
Using Simple xy Plots
56(1)
Printing a Plot
57(1)
Exporting a Plot as a Graphical Image
57(1)
Multiple Plots
58(2)
Line Color, Line Style, Marker Style, and Legends
60(3)
Logarithmic Scales
63(1)
2.12 Examples
64(7)
2.13 Debugging MATLAB Programs
71(2)
2.14 Summary
73(4)
Summary of Good Programming Practice
74(1)
MATLAB Summary
74(3)
2.15 Exercises
77(8)
Chapter 3 Branching Statements and Program Design 85(62)
3.1 Introduction to Top-Down Design Techniques
85(6)
3.2 Use of Pseudocode
91(1)
3.3 The Logical Data Type
91(11)
Relational Operators
92(3)
A Caution About the == and ˜= Operators
95(1)
Logic Operators
96(4)
Logical Functions
100(2)
3.4 Branches
102(15)
The if Construct
102(2)
Examples Using if Constructs
104(7)
Notes Concerning the Use of if Constructs
111(2)
The switch Construct
113(1)
The try/catch Construct
114(3)
3.5 Additional Plotting Features
117(17)
Controlling x- and y-axis Plotting Limits
117(1)
Command/Function Duality
118(2)
Plotting Multiple Plots on the Same Axes
120(1)
Creating Multiple Figures
121(1)
Subplots
121(2)
Enhanced Control of Plotted Lines
123(1)
Enhanced Control of Text Strings
123(2)
Polar Plots
125(7)
Annotating and Saving Plots
132(2)
3.6 More on Debugging MATLAB Programs
134(5)
3.7 Summary
139(2)
Summary of Good Programming Practice
139(1)
MATLAB Summary
140(1)
3.8 Exercises
141(6)
Chapter 4 Loops 147(52)
4.1 The while Loop
147(6)
4.2 The for Loop
153(17)
Details of Operation
161(2)
The MATLAB Just-in-Time (JIT) Compiler
163(4)
The break and continue Statements
167(1)
Nesting Loops
168(2)
4.3 Logical Arrays and Vectorization
170(5)
Creating the Equivalent of if/else Constructs with Logical Arrays
173(2)
4.4 Additional Examples
175(15)
4.5 Summary
190(1)
Summary of Good Programming Practice
190(1)
MATLAB Summary
191(1)
4.6 Exercises
191(8)
Chapter 5 User-Defined Functions 199(62)
5.1 Introduction to MATLAB Functions
201(6)
5.2 Variable Passing in MATLAB:The Pass-By-Value Scheme
207(11)
5.3 Optional Arguments
218(5)
5.4 Sharing Data Using Global Memory
223(8)
5.5 Preserving Data Between Calls to a Function
231(5)
5.6 Function Functions
236(4)
5.7 Subfunctions, Private Functions, and Nested Functions
240(6)
Subfunctions
241(1)
Private Functions
242(1)
Nested Functions
243(2)
Order of Function Evaluation
245(1)
5.8 Summary
246(2)
Summary of Good Programming Practice
247(1)
MATLAB Summary
247(1)
5.9 Exercises
248(13)
Chapter 6 Additional Data Types and Plot Types 261(54)
6.1 Complex Data
261(11)
Complex Variables
264(1)
Using Complex Numbers with Relational Operators
264(1)
Complex Functions
265(4)
Plotting Complex Data
269(3)
6.2 String Functions
272(18)
String Conversion Functions
273(1)
Creating Two-Dimensional Character Arrays
273(1)
Concatenating Strings
274(1)
Comparing Strings
275(3)
Searching and Replacing Characters Within a String
278(2)
Uppercase and Lowercase Conversion
280(1)
Trimming Whitespace from Strings
280(1)
Numeric-to-String Conversions
281(1)
String-to-Numeric Conversions
282(1)
Summary
283(7)
6.3 Multidimensional Arrays
290(2)
6.4 Additional Data Types
292(3)
The single Data Type
292(1)
Integer Data Types
293(2)
Limitations of the single and Integer Data Types
295(1)
6.5 Additional Two-Dimensional Plots
295(8)
Additional Types of Two-Dimensional Plots
295(5)
Plotting Functions
300(2)
Histograms
302(1)
6.6 Three-Dimensional Plots
303(3)
Three-Dimensional Line Plots
303(2)
Three-Dimensional Surface, Mesh, and Contour Plots
305(1)
6.7 Summary
306(5)
Summary of Good Programming Practice
309(1)
MATLAB Summary
309(2)
6.8 Exercises
311(4)
Chapter 7 Advanced Features: Sparse Arrays, Cell Arrays, Structures, and Function Handles 315(44)
7.1 Sparse Arrays
315(8)
The sparse Attribute
317(6)
7.2 Cell Arrays
323(13)
Creating Cell Arrays
325(1)
Using Braces {} as Cell Constructors
326(1)
Viewing the Contents of Cell Arrays
326(1)
Extending Cell Arrays
327(3)
Deleting Cells in Arrays
330(1)
Using Data in Cell Arrays
330(1)
Cell Arrays of Strings
331(1)
The Significance of Cell Arrays
332(4)
Summary of cell Functions
336(1)
7.3 Structure Arrays
336(10)
Creating Structure Arrays
336(3)
Adding Fields to Structures
339(1)
Removing Fields from Structures
340(1)
Using Data in Structure Arrays
340(2)
The getfield and setfield Functions
342(1)
Dynamic Field Names
343(1)
Using the size Function with Structure Arrays
344(1)
Nesting Structure Arrays
345(1)
Summary of structure Functions
346(1)
7.4 Function Handles
346(7)
Creating and Using Function Handles
346(2)
The Significance of Function Handles
348(2)
Function Handles and Nested Functions
350(3)
7.5 Summary
353(2)
Summary of Good Programming Practice
355(1)
MATLAB Summary
355(1)
7.6 Exercises
355(4)
Chapter 8 Input/Output Functions 359(50)
8.1 The textread Function
359(2)
8.2 More about the load and save Commands
361(2)
8.3 An Introduction to MATLAB File Processing
363(2)
8.4 File Opening and Closing
365(3)
The fopen Function
365(3)
The fclose Function
368(1)
8.5 Binary I/O Functions
368(5)
The fwrite Function
368(1)
The fread Function
369(4)
8.6 Formatted I/O Functions
373(10)
The fprintf Function
373(1)
Understanding Format Conversion Specifiers
374(3)
How Format Strings Are Used
377(2)
The sprintf Function
379(1)
The fscanf Function
380(2)
The fgetl Function
382(1)
The fgets Function
383(1)
8.7 Comparing Formatted and Binary I/O Functions
383(5)
8.8 File Positioning and Status Functions
388(13)
The exist Function
389(3)
The ferror Function
392(1)
The feof Function
392(1)
The ftell Function
392(1)
The frewind Function
392(1)
The fseek Function
393(6)
The textscan Function
399(2)
Function uiimport
401(1)
8.9 Summary
401(4)
Summary of Good Programming Practice
404(1)
MATLAB Summary
404(1)
8.10 Exercises
405(4)
Chapter 9 Handle Graphics 409(30)
9.1 The MATLAB Graphics System
409(2)
9.2 Object Handles
411(1)
9.3 Examining and Changing Object Properties
411(7)
Changing Object Properties at Creation Time
411(1)
Changing Object Properties After Creation Time
412(6)
9.4 Using set to List Possible Property Values
418(2)
9.5 User-Defined Data
420(2)
9.6 Finding Objects
422(1)
9.7 Selecting Objects with the Mouse
423(3)
9.8 Position and Units
426(5)
Positions of figure Objects
426(1)
Positions of axes and uicontrol Objects
427(1)
Positions of text Objects
428(3)
9.9 Printer Positions
431(1)
9.10 Default and Factory Properties
431(3)
9.11 Graphics Object Properties
434(1)
9.12 Summary
434(1)
Summary of Good Programming Practice
434(1)
MATLAB Summary
435(1)
9.13 Exercises
435(4)
Chapter 10 Graphical User Interfaces 439(70)
10.1 How a Graphical User Interface Works
439(1)
10.2 Creating and Displaying a Graphical User Interface
440(17)
A Look Under the Hood
451(3)
The Structure of a Callback Subfunction
454(1)
Adding Appication Data to a Figure
454(2)
A Few Useful Functions
456(1)
10.3 Object Properties
457(2)
10.4 Graphical User Interface Components
459(16)
Static Text Fields
460(1)
Edit Boxes
460(2)
Pushbuttons
462(1)
Toggle Buttons
463(1)
Checkboxes and Radio Buttons
463(3)
Popup Menus
466(1)
List Boxes
466(3)
Sliders
469(6)
10.5 Additional Containers: Panels and Button Groups
475(3)
Panels
475(1)
Button Groups
476(2)
10.6 Dialog Boxes
478(5)
Error and Warning Dialog Boxes
479(1)
Input Dialog Boxes
480(1)
The uigetfile, uisetfile, and uigetdir Dialog Boxes
481(1)
The uisetcolor and uisetfont Dialog Boxes
482(1)
10.7 Menus
483(11)
Suppressing the Default Menu
484(1)
Creating Your Own Menus
485(2)
Accelerator Keys and Keyboard Mnemonics
487(1)
Creating Context Menus
488(6)
10.8 Tips for Creating Efficient GUIs
494(8)
Tool Tips
494(1)
Pcode
495(1)
Toolbars
496(1)
Additional Enhancements
497(5)
10.9 Summary
502(3)
Summary of Good Programming Practice
503(1)
MATLAB Summary
504(1)
10.10 Exercises
505(4)
A ASCII Character Set 509(2)
B Answers to Quizzes 511(18)
Index 529

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program