EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN 0-471-43997-5.

Slides:



Advertisements
Similar presentations
Week 6 - Programming I So far, we’ve looked at simple programming via “scripts” = programs of sequentially evaluated commands Today, extend features to:
Advertisements

Chapter 1 Computing Tools Data Representation, Accuracy and Precision Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Introduction to Matlab. I use Matlab for: Data analysis Data plotting Image Analysis Also – Simulations (solving odes/pdes/finite element methods) – Minimisations,
Welcome to EGR 106 Foundations of Engineering II Course information Today’s specific topics: – Computation and algorithms – M ATLAB Basics Demonstrations.
Week 6 - Programming I So far, we’ve looked at simple programming via “scripts” = programs of sequentially evaluated commands Today, extend features to:
Matlab Matlab is a powerful mathematical tool and this tutorial is intended to be an introduction to some of the functions that you might find useful.
Introduction to MATLAB Week 13 – 4/21/09. Instructor: Kate Musgrave Time: Tuesdays 3-5pm Office Hours: Tuesdays 1:30-3pm
EGR 106 – Week 2 – Arrays & Scripts Brief review of last week Arrays: – Concept – Construction – Addressing Scripts and the editor Audio arrays Textbook.
Introduction to MATLAB 7 for Engineers
EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN
Introduction to MATLAB ENGR 1187 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
MATLAB Tutorials Session I Introduction to MATLAB Rajeev Madazhy Dept of Mechanical Engineering LSU.
1 Chapter 1 MATLAB Primer This introductory chapter is relatively short and has as its main objective the introduction of MATLAB ® to the reader. This.
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Math 15 Lecture 7 University of California, Merced Scilab A “Very” Short Introduction.
Recap Graphic Window Edit Window Start Button Matrices in MATLAB Scalar Operations Order of Operations Array Operations Matrix Addition Matrix Multiplication.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
MEGN 536 – Computational Biomechanics MATLAB: Getting Started Prof. Anthony J. Petrella Computational Biomechanics Group.
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
ENG 1181 College of Engineering Engineering Education Innovation Center MATLAB is a powerful program for numerical computations, plotting and programming.
Introduction to MATLAB ENGR 1181 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
Introduction to Engineering MATLAB – 1 Introduction to MATLAB Agenda Introduction Arithmetic Operations MATLAB Windows Command Window Defining Variables.
MATLAB An Introduction to MATLAB (Matrix Laboratory) 1.
INTRODUCTION TO MATLAB LAB# 01
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
MATLAB Basics. The following screen will appear when you start up Matlab. All of the commands that will be discussed should be typed at the >> prompt.
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2010.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Introduction to Engineering MATLAB – 2 Introduction to MATLAB - 2 Agenda Defining Variables MATLAB Windows.
CMPS 1371 Introduction to Computing for Engineers MatLab.
10/24/20151 Chapter 2 Review: MATLAB Environment Introduction to MATLAB 7 Engineering 161.
Introduction to Programming with RAPTOR
Winter Semester 2014/2015 College of Engineering.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Week 1: Variables, assignment, expressions READING: 1.2 – 1.4.
What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office:
MCE 372 Engineering Analysis MATLAB Review. M ATLAB – What Is It ? Where Is It? Name is from matrix laboratory Powerful tool for – Computation and visualization.
Introduction to MATLAB 7 MATLAB Programming for Engineer Hassan Migdadi Spring 2013.
Engineering Analysis – Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Interduction to MATLAB Manal Alotaibi Mathematics department College of science King saud university.
Program Development C# Programming January 30, 2007 Professor J. Sciame.
ENG 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program MAT - Introduction.
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2012.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 6: Debugging in MATLAB Monday 15 Sept 2014 EGR 115 Introduction to Computing for Engineers.
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
M ATLAB – What Is It ? Name is from matrix laboratory Powerful tool for – Computation and visualization of engineering and science mathematics – Communication.
29 January 2016Birkbeck College, U. London1 Introduction to Programming Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Spring 2016 Statics - TAM 210 & TAM 211 Discussion 1 - Intro to Matlab 1.
MATLAB Lecture 1 염익준. Introduction MATLAB (MATrix LABoratory) a special purpose computer program optimized to perform engineering and scientific calculations.
1 Faculty Name Prof. A. A. Saati. 2 MATLAB Fundamentals 3 1.Reading home works ( Applied Numerical Methods )  CHAPTER 2: MATLAB Fundamentals (p.24)
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
M ATLAB – What Is It ? Name is from matrix laboratory Powerful tool for – Computation and visualization of engineering and science mathematics – Communication.
Engr 6: Matlab Programming
ECE 1304 Introduction to Electrical and Computer Engineering
Introduction to Matlab
Introduction to Programming
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
CS190/295 Programming in Python for Life Sciences: Lecture 1
MCE 372 Engineering Analysis
Use of Mathematics using Technology (Maltlab)
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
Lab 1: Getting started ICE0125 Programming Fundamentals II – C/C++
Experiment No. (1) - an introduction to MATLAB
Introduction to Matlab
GE209 Introduction to Computer Programming Using Matlab
Presentation transcript:

EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN

Instructor EGR 106 Section 7 Richard Brown, Department of Chemical Engineering, 110 Crawford Hall Office hours Tue-Thur pm (Office)

Grading Attendance15% IMPORTANT SIGN IN ALL CLASSES!!!! Homework15% 3 Quizzes40% Team project30%

Homework 15% of your grade No partial credit Done during lab. If you can not solve a problem, get help. 10 point scale for each assignment Late home work penalty is 2 points Not accepted after one week.

Engineering Computer Lab - ECL To use the ECL you will need the username and password provided to you by the College of Engineering when you started. If you cannot remember your username and password for access to ECL computers, stop by the HELP desk TODAY after class and request one be issued to you. You will need it for next Tuesdays class.

Computation What is computation? Examples:3 + 2 tan 40 o Computation = “transformation from one or more inputs to an output”

Computer Computation Very fast at arithmetic operations Large numbers of repetitive operations quickly Algorithms = computer programs –Need to understand what computations are “simple” for the computer –Need to write a clear set of directions to be followed –Build more complicated computations from intermediate ones

Algorithms Definition: “a set of directions for carrying out a computation in terms of other, simpler computations” “Simpler computations” = ones that we already know how to do

M ATLAB – What is it ? Name is from matrix laboratory - uses matrices or rows and columns of numbers. Powerful tool for –Computation and visualization of engineering and science mathematics –Communication of ideas –Programming: Built-in editor, debugger, and help Many predefined functions (grouped in toolboxes) Interpreted or compiled programs

The Command Window Command prompt >> Basic math operations are available: addition + subtraction – division / multiplication * exponentiation ^ “enter” key “executes” or “runs” or “invokes” the operation Operator precedence: PEMDAS 5 – ^ 4 / ( 3 – 1 ) = ?

Arithmetic Operations Addition Subtraction-3-2 Multiplication*3*6 Right Division/7/3 Left Division\7\3 = 3/7 Exponentiation^2^3 = 8

Precedence Precedence is the order operations are preformed, remember PEMDAS (3^2) anything in parentheses is done first 5^2 exponentiation is next 2*2 or 10/5 multiplication or division next 1+1 or 5-3 addition or subtraction next Operations are done from left to right

Precedence Example 2^(6/2) = 2^3 = 8 2^6/2 = 64/2 = 32 Remember computer does what it is told rather than what you hope it should do.

Some Syntax Assignment operator = > x= 1; > x = 2*x+1; The value of x is 3 Remember when programming that assignment operators can be changed as a result of program actions, so be careful assigning constants.

Predefined Variables ans pi  eps2^(-52) about 2.22e-16 inf  isqrt(-1) jSame as i NaNNot a number 0/0

Some Functions Elementary Math, sqrt(x), exp(x), etc. Trig, sin(x), cos(x), x is in radians Rounding functions, round(x), etc

DIFFUSION What is diffusion? Transport of one atom, ion or molecule through a medium. Applications of Diffusion. Fuel Cells Drug Delivery Strengthening Metals. Structural Failure. Computer Manufacture. Polymer and paint breakdown. Separations

FUEL CELL Proton Exchange Membrane (PEM Cell) Proton Diffusion 2H + O  H Diffusion controls start up time and current produced

Demonstrations Matlab has a number of demonstration programs. Often helpful to run then and also examine the programs – shown in command window. May provide some programming tips!!!