Programming for Electrical Engineers MATLAB and Spice - James C. Squire, Julie Phillips Brown.pdf

(12142 KB) Pobierz
PROGRAMMING FOR
ELECTRICAL ENGINEERS
MATLAB
& SPICE
James C. Squire, P.E., Ph.D.
Julie Phillips Brown, Ph.D.
Academic Press is an imprint of Elsevier
125 London Wall, London EC2Y 5AS, United Kingdom
525 B Street, Suite 1650, San Diego, CA 92101, United States
50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States
The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom
Copyright © 2021 Elsevier Inc. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or any information storage and
retrieval system, without permission in writing from the Publisher. Details on how to seek
permission, further information about the Publisher’s permissions policies and our arrangements
with organizations such as the Copyright Clearance Center and the Copyright Licensing Agency,
can be found at our website:
www.elsevier.com/permissions.
This book and the individual contributions contained in it are protected under copyright by the
Publisher (other than as may be noted herein).
MATLAB
®
is a trademark of The MathWorks, Inc. and is used with permission. The MathWorks
does not warrant the accuracy of the text or exercises in this book.
This book’s use or discussion of MATLAB
®
software or related products does not constitute
endorsement or sponsorship by The MathWorks of a particular pedagogical approach or particular
use of the MATLAB
®
software.
All images of LTspice and its icons are owned by Analog Devices, Inc. (ADI), Copyright © 2021.
All Rights Reserved. The images and icons of LTspice are reproduced with permission by ADI. No
unauthorized reproduction, distribution, or usage is permitted without ADI’s written consent.
Notices
Knowledge and best practice in this field are constantly changing. As new research and experi-
ence broaden our understanding, changes in research methods, professional practices, or
medical treatment may become necessary.
Practitioners and researchers must always rely on their own experience and knowledge in
evaluating and using any information, methods, compounds, or experiments described herein.
In using such information or methods they should be mindful of their own safety and the safety
of others, including parties for whom they have a professional responsibility.
To the fullest extent of the law, neither nor the Publisher, nor the authors, contributors, or
editors, assume any liability for any injury and/or damage to persons or property as a matter
of products liability, negligence or otherwise, or from any use or operation of any methods,
products, instructions, or ideas contained in the material herein.
Library of Congress Cataloging-in-Publication Data
A catalog record for this book is available from the Library of Congress
British Library Cataloguing-in-Publication Data
A catalogue record for this book is available from the British Library
ISBN: 978-0-12-821502-9
For information on all Academic Press publications visit our website at
https://www.elsevier.com/books-and-journals
Acquisition Editor:
Stephen Merken
Editorial Project Manager:
Ali Afzal-Khan
Production Project Manager:
Kamatchi Madhavan
Cover Designer:
Matthew Limbert
Typeset by TNQ Technologies
Printed in China
Last digit is the print number:
9
8
7
6 5
4 3
2
1
FOREWORD
Welcome, students, as you begin your journey to becoming electrical engineers!
You probably chose this major because you wanted a challenging and reward-
ing college experience. Perhaps you came in search of a field of study that would
suit your natural inclinations towards math and science. While some of you may
have prior experiences from First Robotics, Lego League, or a high school elec-
tronics course, others may never have considered engineering as a career before
a guidance counselor suggested it. Perhaps you have always known engineering
was right for you, from the first time you took apart a household gizmo or saved
spare parts taken from broken toys. While most people see engineering as a way
to help solve society’s problems using technology, all of you will soon learn to
appreciate our profession as an extended family of colleagues who share an
oddball sense of humor, who have actually read their calculator manuals, and
who are bothered by technical faults in science fiction movies.
Programming for Electrical Engineers
iii
We have designed this textbook not only to help you learn
matlab
programming
and Spice simulation skills, but also to introduce you to the culture and profession
of Electrical Engineering. As you progress through the curriculum, you will find
that the way you think about problems will change: your analysis will become
clearer, your ability to discard confounding variables will sharpen, and your ability
to construct and test models of processes will improve. This will be true whether
the problem is how to build an improved voltage amplifier, how to increase the
morale of the junior engineers in your unit, or how to grow a company in the
face of fierce international competition. EE graduates perform well in engineer-
ing, leadership, and business roles upon graduation, and many go on to diverse
careers in law, medicine, and the military. Indeed,
Forbes Magazine
notes that
engineering and computer science majors were found to have higher postgradu-
ation salaries than any other major
1
. These advantages do not attenuate over
time; engineering has long been ranked as the most common undergraduate
degree among Fortune 500 CEOs
2
, more than business and economics majors.
While a degree in engineering confers many benefits upon graduation, most
of all, we hope to convey that we become engineers neither for the economic
benefits nor for the opportunity to use technology to help solve societal prob-
lems (although we are grateful for both). We become engineers because we love
the challenge of solving difficult problems. That is the thought that keeps both
first-year students and seasoned professionals motivated into the early morning
hours, and it is a large part of the success and satisfaction you will find in what-
ever career you ultimately choose.
Welcome to the field,
James Squire
Julie Phillips Brown
1
Somers, Darian, and Josh Moody. “10 College Majors With the Highest Starting Salaries.”
U.S. News
& World Report,
11 Sept. 2019,
www.usnews.com/education/best-colleges/slideshows/10-
college-majors-with-the-highest-starting-salaries
.
2
Whitler, Kimberly A. “New Study On CEOs: Is Marketing, Finance, Operations, Or Engineering The
Best Path To CEO?”
Forbes,
14 Oct. 2019,
www.forbes.com/sites/kimberlywhitler/2019/10/12/new-
study-on-ceos-is-marketing-finance-operations-or-engineering-the-best-path-to-the-c-suite/
.
iv
Foreword
ACKNOWLEDGMENT
The authors would like to gratefully acknowledge the contributions of cadets
at Virginia Military Institute, and in particular, Eric Munro ‘21, Will Nicholson ‘21,
Alex Rice ‘22, and Ben Smith ‘21, each of whom helped to test and improve the
problem sets in this text.
Dr. Brown would like to express her deepest thanks to her coauthor, Jim Squire,
whose ingenuity, good humor, and tireless efforts on behalf of this project have
been an invaluable gift. She would also like to thank her family for the gifts of
laughter, love, and time, which have buoyed her throughout the process of writ-
ing, revising, and publishing this book.
Dr. Squire thanks his coauthor, Julie, for managing to keep him on-track with
inspiration, spirit, and grammar (in roughly that order); his wife, Laura, whose
love and support never faltered even through another year of late-night dinners;
and Kevin and Ryan whose curiosity and enthusiasm for learning he hopes is
reflected in this text.
Acknowledgment
v
Zgłoś jeśli naruszono regulamin