
Programming for Electrical Engineers
MATLAB and Spice
- 1st Edition - July 8, 2020
- Imprint: Academic Press
- Authors: James C. Squire, Julie Phillips Brown
- Language: English
- Paperback ISBN:9 7 8 - 0 - 1 2 - 8 2 1 5 0 2 - 9
- eBook ISBN:9 7 8 - 0 - 1 2 - 8 2 1 5 0 3 - 6
Programming for Electrical Engineers: MATLAB and Spice introduces beginning engineering students to programming in Matlab and Spice through engaged, problem-based learning… Read more
Purchase options

Programming for Electrical Engineers: MATLAB and Spice introduces beginning engineering students to programming in Matlab and Spice through engaged, problem-based learning and dedicated electrical and computer engineering content. The book draws its problems and examples specifically from electrical and computer engineering, covering such topics as circuit analysis, signal processing, and filter design. It teaches relevant computational techniques in the context of solving common problems in electrical and computer engineering, including mesh and nodal analysis, Fourier transforms, and phasor analysis.
Programming for Electrical Engineers: MATLAB and Spice is unique among MATLAB textbooks for its dual focus on introductory-level learning and discipline-specific content in electrical and computer engineering. No other textbook on the market currently targets this audience with the same attention to discipline-specific content and engaged learning practices. Although it is primarily an introduction to programming in MATLAB, the book also has a chapter on circuit simulation using Spice, and it includes materials required by ABET Accreditation reviews, such as information on ethics, professional development, and lifelong learning.
- Discipline-specific: Introduces Electrical and Computer Engineering-specific topics, such as phasor analysis and complex exponentials, that are not covered in generic engineering Matlab texts
- Accessible: Pedagogically appropriate for freshmen and sophomores with little or no prior programming experience
- Scaffolded content: Addresses both script and functions but emphasizes the use of functions since scripts with non-scoped variables are less-commonly encountered after introductory courses
- Problem-centric: Introduces MATLAB commands as needed to solve progressively more complex EE/ECE-specific problems, and includes over 100 embedded, in-chapter questions to check comprehension in stages and support active learning exercises in the classroom
- Enrichment callouts: "Pro Tip" callouts cover common ABET topics, such as ethics and professional development, and "Digging Deeper" callouts provide optional, more detailed material for interested students
First and second year engineering students in Electrical and Computer Engineering (EE/CpE/ECE) programs / professionals across all technical areas interested in teaching themselves MATLAB programming
Introduction
Purpose of this text
Software for Electrical Engineers
Formatting conventions
Chapter 1: Introduction to MATLAB
Objectives
Starting MATLAB and the workspace
Using MATLAB as a calculator
Variables
Tech Tip
: Charge and currentNaming and inspecting variables
Parentheses and implied multiplication
Special symbols: i, j, and π
Tech Tip
: Voltage, current, charge, & resistanceFormatting numbers
Scientific notation
Exponentials and their inverses
Trig functions and their inverses
Pro Tip
: IEEECreating vectors
Use of the semicolon
Tech Tip
: Ohm’s LawPlotting data
Getting help
Tech Tip
: Using a digital multimeter (DMM) to measure steady voltageSaving and loading variables
Keyboard shortcuts
Pro Tip
: Careers in Electrical EngineeringChapter 1 command review
Lab problems
Chapter 2: MATLAB as a Calculator
Objectives
Rounding
Tech Tip:
Measuring resistanceVectors
Creating vectors
Tech Tip:
Resistors in series and parallelWorking with vectors
Complex numbers
Vector mathematics
Pro Tip:
Buying a digital multimeter (DMM)Matrices
Creating matrices
Tech Tip:
Mesh and nodal analysis methodsChanging matrix values
Working with matrices
Tech Tip:
Voltage dividersSolving simultaneous equations
Command review
Pro Tip:
Buying a calculatorLab problems
Chapter 3: Plotting with MATLAB
Objectives
Types of plots
Tech Tip:
OscilloscopesLine plot
Line plots with multiple lines
Scatter plots
Tech Tip:
Bode plotsPlot scripts
Layering plot commands with hold()
Pro Tip:
Professional licensure (PE)Bar plots
Subplot
Tech Tip:
Low pass filtersAdvanced plot decoration
Text annotation
Tech Tip:
Greek symbols in ECEAdvanced text formatting
Three dimensional MATLAB plots
Pro Tip:
IEEE code of ethicsCommand review
Lab problems
Chapter 4: MATLAB Programming
Objectives
Why program?
Scripts
Tech Tip:
Wire sizingFunctions
Function arguments
Creating your own functions
Commenting programs
More complex function examples
Sorting
Pro Tip:
Graduate studies in EERelational expressions
Logical operators
Logical operations on vectors and matrices
Tech Tip:
Engineering notationConditional statements: if-end
Conditional statements: if-else-end
Tech Tip:
Resistor color codesConditional statements: elseif
Creating strings with embedded numbers
Pro Tip:
Industry or graduate school?Command review
Lab problems
Chapter 5: Programming II: Looping
Objectives
disp()
for-end loops
Tech Tip:
Monte Carlo simulationsIndexing vectors inside for loops
Nested loops
Using nested loops for exact solutions
Using nested loops for best solutions
Pro Tip:
Non-engineering careerstic, toc
Functions calling functions
break
Tech Tip:
Binary math in MATLABMultiple functions in one m-file
while-end loops
Growing vectors vs. preallocation
Pro Tip:
Fundamentals of engineering (FE)Command review
Lab problems
Chapter 6: Spice
Objectives
Circuit simulation
Tech Tip:
What is ground?Utility
Installing LTspice
Tech Tip:
Power vs. energy (work)Steps in simulating
Schematic editor
Pro Tip:
Ethics IITypes of LTspice simulations
DC simulation walkthrough
Tech Tip:
555 timerTransient simulation
AC sweep simulation
Tech Tip:
Operational amplifiersAdvanced tip: using nets
Pro Tip:
Lifelong learningCommand review
Lab problems
Index
- Edition: 1
- Published: July 8, 2020
- Imprint: Academic Press
- Language: English
JS
James C. Squire
JB