Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2012.

Slides:



Advertisements
Similar presentations
Lecture 5.
Advertisements

1 EMT 101 – Engineering Programming Dr. Farzad Ismail School of Aerospace Engineering Universiti Sains Malaysia Nibong Tebal Pulau Pinang Week 10.
Flow Charts, Loop Structures
Chapter 8 and 9 Review: Logical Functions and Control Structures Introduction to MATLAB 7 Engineering 161.
EGR 106 – Week 2 – Arrays & Scripts Brief review of last week Arrays: – Concept – Construction – Addressing Scripts and the editor Audio arrays Textbook.
Programming in MATLAB Week 14 – 4/28/09 Kate Musgrave
Dr. Jie Zou PHY Welcome to PHY 3320 Computational Methods in Physics and Engineering.
Introduction to MATLAB MECH 300H Spring Starting of MATLAB.
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.
Introduction to programming in MATLAB MATLAB can be thought of as an super-powerful graphing calculator Remember the TI-83 from calculus? With many more.
Digital Image Processing Lecture3: Introduction to MATLAB.
Programming For Nuclear Engineers Lecture 12 MATLAB (3) 1.
What is MATLAB ? MATrix LABratory –Originally, it was a front-end to FORTRAN matrix routines developed in the U. of New Mexico and Stanford –Today.
Chapter 4 MATLAB Programming Combining Loops and Logic Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
9/5/2015 Spring Introduction to Engineering 161 Engineering Practices II Joe Mixsell Phone:
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
MATLAB WORKSHOP FOR EE 327FOR EE 327 MWF 8: AMMWF 8: AM August 26-30, 2002August 26-30, 2002 Dr. Ali A. Jalali.
Math 15 Lecture 7 University of California, Merced Scilab A “Very” Short Introduction.
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
Math 15 Lecture 10 University of California, Merced Scilab Programming – No. 1.
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.
A Brief Introduction to Matlab Laila Guessous Dept. of Mechanical Engineering Oakland University.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
INTRODUCTION TO MATLAB LAB# 01
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Copyright © The McGraw-Hill Companies, Inc. Introduction to MATLAB for Engineers, Third Edition William J. Palm III Chapter 1 An Overview of MATLAB.
Matlab Basics Tutorial. Vectors Let's start off by creating something simple, like a vector. Enter each element of the vector (separated by a space) between.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 2.
Lecture 1 - Introduction June 3, 2002 CVEN 302. Lecture’s Goals General Introduction to CVEN Computer Applications in Engineering and Construction.
Chapter 1: Getting Started with MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation tools. Others include Maple Mathematica MathCad.
A Brief introduction to MatLAB ($50 - $99 for students)
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Lecture 2 BSC 417/517. Today’s class Course website Schedule & topics for rest of semester Software tools and introductions Basic system components and.
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.
10/24/20151 Chapter 2 Review: MATLAB Environment Introduction to MATLAB 7 Engineering 161.
MATLAB Harri Saarnisaari, Part of Simulations and Tools for Telecommunication Course.
Synthesis ENGR 1181 MATLAB 11. Topics  No new material  Covers topics that will be on the Midterm 2 Exam MATLAB 01 – Program Design MATLAB 02 – Introduction.
MATLAB Environment ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
Winter Semester 2014/2015 College of Engineering.
Scientific Computing Introduction to Matlab Programming.
Matlab 14.html Cost: $100 Available in labs on Windows and Unix machines.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Getting Started with MATLAB (part2) 1. Basic Data manipulation 2. Basic Data Understanding 1. The Binary System 2. The ASCII Table 3. Creating Good Variables.
Chapter 6 Review: User Defined Functions Introduction to MATLAB 7 Engineering 161.
Introduction to MATLAB 7 MATLAB Programming for Engineer Hassan Migdadi Spring 2013.
1 Lecture 1 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
1 Faculty Name Prof. A. A. Saati. 2 MATLAB Fundamentals 3 1.Reading home works ( Applied Numerical Methods )  CHAPTER 2: MATLAB Fundamentals (p.24)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
“Moh’d Sami” AshhabSummer 2008University of Jordan MATLAB By (Mohammed Sami) Ashhab University of Jordan Summer 2008.
Structured Computer Programming EE 201 Introduction to MATLAB 7 for Engineers بسم الله الرحمن الرحيم King Abdulaziz University College of Engineering Dept.
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
1-2 What is the Matlab environment? How can you create vectors ? What does the colon : operator do? How does the use of the built-in linspace function.
SKMM1013 Programming for Engineers
Computer Application in Engineering Design
Matlab Training Session 4: Control, Flow and Functions
Lecture: MATLAB Chapter 1 Introduction
MATLAB DENC 2533 ECADD LAB 9.
Lecture 1: Introduction
MATH 493 Introduction to MATLAB
Use of Mathematics using Technology (Maltlab)
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Presentation transcript:

Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2012

MATLAB Properties I MATLAB is a very powerful mathematical computational tool. MATLAB comes from MATrix LABoratory MATLAB provides extensive capabilities for generating graphs MATLAB is applicable to a broad range of engineering problems

MATLAB Properties II MATLAB supports an interactive and a programming environment Think of the interactive environment as a “super calculator” with graphics Think of the programming environment as tool for writing programs to perform complex calculations

MATLAB Properties III Where does MATLAB fit? –It is usually easier to write programs in MATLAB as compared to C or Fortran –C or Fortran programs will usually run faster than MATLAB programs –But, MATLAB is optimized for matrix manipulations and programs formalized in this way will run faster than similar programs in C or Fortran

Resources Text: MATLAB for Engineers Notes: MATLAB Notes and Assignments Website: rses/engr161.cfm Website: Student Edition of MATLAB 7 ($99) Computer Lab

Course of Study MATLAB EnvironmentChp. 2 Built-In MATLAB Functions Chp. 3 Manipulating MATLAB MatricesChp. 4 PlottingChp. 5 User Defined FunctionsChp. 6 User Controlled Input and OutputChp. 7 Logical Functions and Control StructuresChp. 8 and 9 Matrix AlgebraChp. 10 Symbolic MathematicsChp. 12 Polynomials/Curve FittingSlide set

MATLAB Assignments Chp. 2: 2.9, 2.11, 2.13, 2.17 and 2.18 Chp. 3: 3.5, 3.10, 3.22, 3.23 Chp. 4: 4.1, 4.8, 4.12 Chp. 5: 5.11, 5.13, 5.20, 5.25, 5.27 Chp. 6: 6.2, 6.6, 6.8 Chp. 7: 7.5 and 7.6, 7.9, 7.12, 7.13, 7.15 Chp. 8 & 9: 8.4, 8.5, 8.14, 9.8, 9.13, 9.15, 9.16 Chp. 10: 10.18, Chp. 12: 12.7, 12.9 and 12.10, 12.11, 12.15, 12.16, 12.29, and 12.30

Programming Assignment- Project #1 There will be three longer programming projects which will be assigned and discussed in class later in the semester, usually after the first exam. You will have two weeks to complete each project and turn in your work for credit.

Programming Assignment- Project #2

Programming Assignment- Project #3

Assignments The percent symbol % is used to define a comment, use this following the MATLAB prompt to add your name and assignment number to your work >>% Joe Mixsell >>% Assignment 3.4

Assignments Many assignment require you to print the Edit window, the Command Window and the Figure window(s). Just print them all and staple them together when you turn them in. Remember to clear the command window before your final run to start with a clean slate.

More on Assignments The first few assignments can easily be done with paper and pencil and a calculator but you need to do them using MATLAB. Only outputs from MATLAB will be accepted.

An Engineering Problem-Solving Methodology Step 1: State the problem clearly. Step 2: Describe the inputs and outputs. Step 3: Work the problem by hand with a set of simple data. Step 4: Develop the MATLAB solution Step 5: Test the solution with real data

Getting Started Example 1 d = ½ * g * t^2 where d is the distance a body falls freely in a gravitation field during t seconds. Example 2 x(t) = exp (-alpha * t ) * cos ( omega * t ) i.e, our suspension system we studied previously briefly using Excel

Example I Using MATLAB we want to create a table of values of time and distance for time increments between 0 and 10 seconds.

Example II Using MATLAB we’ll do an analysis of a suspension system and plot position versus time as the system responds to an initial displacement.

Continuing with today’s Discussion MATLAB Help and Demos Introduce various MATLAB windows Use the Command Window Use the Edit Window View results in the Command Window and the Graphics Window

Discussion Next Class- Chapter 2- MATLAB Environment MATLAB variables Working with Matrices Scalar Operations Precedence of Arithmetic Operators Array Operations Saving your Work –Saving Variables –M-files (Writing and saving programs)

MATLAB Discussion Sequence We will complete Chapters 2, 3, 4 and 5 for our first exam. Then introduce material from Chapters 6, 7 and 8 for several programming topics (functions, input statements, for loops and if statements ). At this point the first programming project will be assigned. Then we will complete the material in these Chapters.

Scheduling our Midterm Assume we’ll set the midterm date to be in early to mid part of March. It will include Excel, Powerpoint and MATLAB up and including Chapter 5. Remember assignments in Excel and MATLAB through Chapter 5 due at first exam. We’ll finalize the date in a couple weeks.

And now... OFF TO MATLAB… Learn by doing...