ES 100: Introduction to Engineering Use of the Computer 1.Log in using your Novell password. If you do not know your password, immediately (now!) see Al.

Slides:



Advertisements
Similar presentations
Introduction to Matlab Workshop Matthew Johnson, Economics October 17, /13/20151.
Advertisements

Welcome to EGR 106 Foundations of Engineering II Course information Today’s specific topics: – Computation and algorithms – M ATLAB Basics Demonstrations.
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 Northeastern University: College of Computer and Information Science Co-op Preparation University (CPU) 10/22/2003.
Division Example 2x - 3y + 4z = 10 x + 6y - 3z = 4 -5x + y + 2z = 3 A*X = B where A = B = >> X = A\B X =
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.
January 24, 2005 Lecture 3 - By P. Lin 1 CPET 190 Lecture 3 Problem Solving with MATLAB
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
MATLAB Lecture One Monday 4 July Matlab Melvyn Sim Department of Decision Sciences NUS Business School
BRIAN D. HAHN AND DANIEL T. VALENTINE THIRD EDITION Essential MATLAB® for Engineers and Scientists.
Nonparametric Econometrics1 Intro to Matlab for Data Analysis and Statistical Modeling.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
1 Guide to Novell NetWare 6.0 Network Administration Chapter 12.
Introduction to M ATLAB EE 100 – EE Dept. - JUST.
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
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.
1 Functions 1 Parameter, 1 Return-Value 1. The problem 2. Recall the layout 3. Create the definition 4. "Flow" of data 5. Testing 6. Projects 1 and 2.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
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 – 6 Script Files - 1 Agenda Script files.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
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.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
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.
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.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
Chapter 6 Review: User Defined Functions Introduction to MATLAB 7 Engineering 161.
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.
Interduction to MATLAB Manal Alotaibi Mathematics department College of science King saud university.
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.
Laboratory 2. LABORATORY OBJECTIVES This lab work is intended to give the students more insights on the Matlab environment and how to work more efficiently.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Matlab for Engineers Matlab Environment Chapter 2.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Engineering Computation with MATLAB First Edition by David M. Smith Chapter.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
MATLAB The name of MATLAB stands for matrix laboratory. Starting a MATLAB Session -On Microsoft® Windows® platforms, start the MATLAB program by double-clicking.
Matlab Programming for Engineers
Release Numbers MATLAB is updated regularly
Computer Application in Engineering Design
Appendix B MathScript Basics
Lecture: MATLAB Chapter 1 Introduction
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
Welcome to MATLAB.
2) Platform independent 3) Predefined functions
MATLAB DENC 2533 ECADD LAB 9.
Lecture 1: Introduction
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
Digital Image Processing
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Experiment No. (1) - an introduction to MATLAB
Presentation transcript:

ES 100: Introduction to Engineering Use of the Computer 1.Log in using your Novell password. If you do not know your password, immediately (now!) see Al Bender in room 342 upstairs. 2.Open MATLAB once you have logged in. 3.A quiz will be given at the end of class.

Welcome to the New Course! ES 100 has been substantially revamped as part of an NSF grant entitled “Hands-On Learning in Engineering” Twelve sections of hands-on lecture/lab (Meets two times per week) Twelve sections of lab experiments and data collection (Meets four times during the semester) You need to be signed up for one section of each

Course Information Attendance is required at all lecture/labs and all experiments and will be tracked with Blackboard. Every class will include a brief quiz on Blackboard near the beginning of class. The lowest five of these will be dropped. There will be no make-up for quizzes. There will be homework assigned for every class. Each of the four “lab experiments” will have an associated group assignment.

More course information Grading will be as follows –10% Attendance (taken via Blackboard) –60% Quizzes (Via Blackboard, every class, lowest three dropped) –30% Lab Exercises & Reports (written group reports) You will be asked from time to time to fill out a questionnaire. They are not mandatory and will not be used in grading.

Course Objectives The general objectives of this course are to: Learn how to use MATLAB as a computer programming tool. Learn how to create simple algorithms and program them to solve problems of engineering interest. Learn about the application of computers in laboratory experiments using LabVIEW Use MATLAB to manage data and compare results from experiments and mathematical models Have fun while learning this useful tool

MATLAB characteristics Advantages of MATLAB for Programming Ease of Use Convenient editor with automatic formatting Platform Independence Predefined Functions Device-Independent Plotting Graphical User Interfaces MATLAB Compiler Available Same Tool for Many Uses Disadvantages of MATLAB for Programming Interpreted (can be slow),Cost

The MATLAB Desktop Set to where you want to store your work (recommend U: Drive)

Make the following changes in MATLAB now Change the Current Directory to your U drive. (Click on the... button, click on the U drive with your name on it, click on OK.) This is where you want to save your classwork because it can be accessed anywhere in the world. You may want to create a new folder named ES 100. Go to File, Preferences, Command Window and change the Numeric display to compact.

The Command Window

This is where you can work interactively with MATLAB Some commonly used commands –▲ (up arrow) -- returns the previous command. Can be repeated to obtain earlier commands. –clc – clears the screen but not the memory –whos – shows list of variables and their properties –clear – clears the memory but not the screen

>>a=1 >>b = 3 >>a+b >>whos >>a >>b >>ans >>c >>a = 2 >>c = a*b >>a*sqrt(b) >>▲ (up arrow) >>a*sqrt(c) >>a = a + 1 >>clc Enter the following commands into MATLAB

The Workspace Window Shows properties of variables Can be used to edit values of variables (double click to activate array editor)

The Array Editor is invoked by double-clicking a variable in the Workspace Browser. It allows a user to change the values contained in a variable or array. The Array Editor

The Launch Pad.

The Command History Window Double click on any command to repeat it in the Command Window

The Edit/Debug Window This is where you write, edit, test and debug your programs (script or “m” files) You will be using this window A LOT!

Exercise using MATLAB’s Editor Click on Start (in MATLAB), Desktop Tools, Editor and enter the following: % Tree Measurement, dbh = Diameter at Breast Height (that’s how foresters % measure trees) dbh = 24 area=(dbh^2)*pi/4 circ=dbh*pi myStringArea=[‘The tree’s area is ‘ num2str(area)] myStringCirc=[‘The tree’s circumference is ‘ num2str(circ)] disp(myStringArea) disp(myStringCirc) Save as tree.m, execute tree in the Command Window, examine output, add semicolons to tree.m in the Editor, save, rerun in Command, examine

MATLAB plotting Matlab has excellent plotting capabilities You can create and format a plot from the command widow You can also create and format plots from your program Unless you are creating a program, it is easier to format a plot in the plot window

MATLAB plot of sin x versus x.

Plotting Exercise Enter the following into the Command Window >>a = [ ]; >>b=a.^2; >>plot(a,b); >>bar(a,b); See how the figure changed. >>scatter(a,b); See how the figure changed.

Exercise using Array Editor In the Workspace window double click on the variable a Edit the last value to be 8 Go to the Command window and type “a” to show that its last value was changed Type “b” to show that its values have not changed Compare the plots without and with b updated: >>plot(a,b); >>b=a.^2; >>plot(a,b);

The Help Browser

The Path Tool This is where you tell MATLAB where to look for m files when they are named in the Command Window.

Assignment for next lecture Do problems 1.5, 1.6, 1.7, 1.8 yourself. The only way to learn how to use software is lots of practice. Write GPP/PP into a word file for chapters 1 & 2 Note: GPP = Good Programming Practice PP = Potential Pitfalls Read all of Chapter 1 and sections ,2.8, 2.9 Be prepared for a quiz at the beginning of the next class, based on this assignment. This will also serve to take attendance.