111 Week1 1
111 Week1 1
111
Programming for Engineers
WEEK 1-1
Textbook (required)
MATRAB, A PracKcal IntroducKon to
Programming and Problem Solving (4thED)
Author: Stormy AUaway
Publisher: Elsevier, BuUerworth-Heinemann
Supplement Text Book (op,on)
Contact info
Maya Endoh (room 315)
maya.koga@stonybrook.edu
Oce Hour: Friday, 1:00pm-3:00pm
Schedule
WEEK
Topics
Week1
IntroducKon to MATLAB
Week2
Week3
Week4
Week5
Week6
LOOP Statements
Week7
Week8
Midterm
Week9
Data Structures
Week10
Week11
Plogng Techniques
Week12
Week13
Week14
Grading
Chea,ng
CHEATING: Turning in work done by another person as if were your own.
Throughout the semester, you may collaborate with other students in the
class. However, directly copying from your peers assignments will not be
tolerated.
Changing variable names or adding spurious commands, etc. consider as
cheaKng. If you work with your peers, then write down all the names in
your projects.
Lecture Room
From week 2, the class will be held in room
112 and 269A in Old Engineering Building.
You will be assigned to either group A, B or C
by alphabeKcal order in order to rotate the
classroom.
Please check your assigned classroom day by
day. (will be posted in Blackboard later)
MATLAB
MATLAB is available for all SBU students.
During the class, you are required to logon to
your SBU stu account to use provided
MATLAB in the classroom computers.
For individual works, please follow the link
below.
hUps://it.stonybrook.edu/soqware/Ktle/
matlab
Learning MATLAB
MATLAB
Machine Language
IntroducKon to MATLAB
Very powerful soqware package
Many mathemaKcal and graphical applicaKons
Has programming constructs
Also has many built-in funcKons
Can use interacKvely in the Command Window,
or write your own programs
In the Command Window the >> is the prompt
13
Desktop Environment
Current Folder window shows les; the folder set
as the Current Folder is where les will be saved
Workspace Window: shows variables (discussed
next)
Command History Window: shows commands
that have been entered and on what date
Toolstrip on top has tabs for HOME (the default),
PLOTS, and APPS
HOME tab is divided into funcKonal secKons FILE,
VARIABLE, CODE, ENVIRONMENT, RESOURCES
Under ENVIRONMENT, Layout allows for
customizaKon of the Desktop Environment