0% found this document useful (0 votes)
142 views14 pages

111 Week1 1

esg 11 sbu

Uploaded by

Carole Commodore
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views14 pages

111 Week1 1

esg 11 sbu

Uploaded by

Carole Commodore
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

ESG

111
Programming for Engineers
WEEK 1-1

Syllabus Course Descrip,on


The prerequisites for this course is AMS 151 or MAT
125 or 131 or 141; PHY 125/133 or 131/133 or 141.
The course is designed the basics of programming in
general and programming MATLAB
The very basics of programming in MATLAB will be
covered, with the goal of having students become
comfortable enough to conKnue learning MATLAB and
other programming languages on their own.
The course consists of interacKve lectures with
students doing sample MATLAB problems in real Kme

Textbook (required)
MATRAB, A PracKcal IntroducKon to
Programming and Problem Solving (4thED)
Author: Stormy AUaway
Publisher: Elsevier, BuUerworth-Heinemann
Supplement Text Book (op,on)

An IntroducKon to MATLAB programming


and Numerical Methods for Engineers
Author: Timmy Siauw & Alexandre M. Bayen
Publisher: Elsevier, Academic Press

Contact info
Maya Endoh (room 315)
maya.koga@stonybrook.edu
Oce Hour: Friday, 1:00pm-3:00pm

TA: Jiaolong Jiang (Jiaolong.Jiang@stonybrook.edu)


Adrian Hurtado (adrian.hurtado@stonybrook.edu)
Mengnan Zou (Mengnan.Zou@stonybrook.edu)

RecitaKon & HW help: will be announced shortly

Schedule
WEEK

Topics

Week1

IntroducKon to MATLAB

Week2

MA TLAB as a calculator (Scalars in MATLAB)

Week3

Vectors and Matrix (Vectors in MATLAB)

Week4

IntroducKon to Programming in MATLAB

Week5

IF, ELSE statements

Week6

LOOP Statements

Week7

FuncKons & Strings

Week8

Midterm

Week9

Data Structures

Week10

File Input & Output

Week11

Plogng Techniques

Week12

Sets, SorKng and Indexing

Week13

Advanced MathemaKcs (StaKsKcal funcKons, gng curves, etc.)

Week14

Advanced MathemaKcs (IntegraKon, DierenKaKon)

Grading

Class AUendance: 20%


HWs: 20%
Midterm Exam: 30%
Final Exam: 30%

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)

Copyright 2013 Elsevier Inc. All rights


reserved

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

Computer Programming Language


Computer Language is an arKcial
language designed to work for dierent
applicaKons in dierent environments
In order to communicate with computers, we
need to use computer languages.
High Level Language
Low Level Language / Assembly Language
Machine Language

Learning MATLAB
MATLAB

High Level Language

(C, C++, JAVA, Fortran, Pascal, Python, Visual Basic, etc)


Work on dierent operaKon system

Low Level Language or Assembly Language


Human readable instrucKons of the CPU

Machine Language

ConsisKng of binary instrucKons that computer can respond directly


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

At the prompt, enter a command or expression


MATLAB will respond with a result

MATLAB Desktop Environment


Command Window is large window in middle; Current Folder Window to
leq, Workspace and Command History to right

Copyright 2013 Elsevier Inc. All rights


reserved

13

Gegng into MATLAB


In the Command Window, one will see >>.
>> is called prompt
At the prompt, any MATLAB command or
expression can be entered
command
demo, help, lookfor, doc

To exit from MATLAB, type quit or exit at the


prompt (or click on MATLAB then QUIT MATLAB
from the menu).

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy