Winter Semester 2014/2015 College of Engineering.

Slides:



Advertisements
Similar presentations
Introduction to Matlab
Advertisements

Introduction to Matlab Workshop Matthew Johnson, Economics October 17, /13/20151.
Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
Introduction to Matlab EE 2303 Lab. MATLAB stands for “Matrix Laboratory” APPLICATIONS OF MATLAB:  Mathematical Calculations  Data Analysis & Visualization.
Introduction to Computer Programming in C
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.
Introduction to Matlab By: Dr. Maher O. EL-Ghossain.
EGR 106 – Week 2 – Arrays Definition, size, and terminology Construction methods Addressing and sub-arrays Some useful functions for arrays Character arrays.
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
Division Example 2x - 3y + 4z = 10 x + 6y - 3z = 4 -5x + y + 2z = 3 A*X = B where A = B = >> X = A\B X =
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.
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.
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
CSCI 1301 Principles of Computer Science I
MATLAB Lecture One Monday 4 July Matlab Melvyn Sim Department of Decision Sciences NUS Business School
EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN
THE MATLAB ENVIRONMENT VARIABLES BASIC COMMANDS HELP HP 100 – MATLAB Wednesday, 8/27/2014
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Introduction to MATLAB. Windows in MATLAB Command Window – where you enter data, run MATLAB code, and display results Command History - displays a log.
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 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 Engineering MATLAB – 1 Introduction to MATLAB Agenda Introduction Arithmetic Operations MATLAB Windows Command Window Defining Variables.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
INTRODUCTION TO MATLAB LAB# 01
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.
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.
CMPS 1371 Introduction to Computing for Engineers MatLab.
10/24/20151 Chapter 2 Review: MATLAB Environment Introduction to MATLAB 7 Engineering 161.
MATLAB Environment ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
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 &
Introduction to MATLAB 7 MATLAB Programming for Engineer Hassan Migdadi Spring 2013.
Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz SUNY-New Paltz “Lecture 2”
1 Lecture 1 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
EGR 115 Introduction to Computing for Engineers Introduction to MATLAB Friday 29 August 2014 EGR 115 Introduction to Computing for Engineers.
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.
Introduction to Matlab  Matlab is a software package for technical computation.  Matlab allows you to solve many numerical problems including - arrays.
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.
Introduction to Matlab
Introduction to MATLAB Section2, statistics course Third year biomedical dept. Dina El Kholy, Ahmed Dalal.
訊號與系統 廖文淵 德霖技術學院資訊工程系 Introduction to MATLAB.
1 Faculty Name Prof. A. A. Saati. 2 MATLAB Fundamentals 3 1.Reading home works ( Applied Numerical Methods )  CHAPTER 2: MATLAB Fundamentals (p.24)
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
Copyright © The McGraw-Hill Companies, Inc. This work is only for non-profit use by instructors in courses for which this textbook has been adopted.
CS140 – Computer Programming 1 Course Overview First Semester – Fall /1438 – 2016/2017 CS140 - Computer Programming 11.
Matlab Programming for Engineers
ECE 1304 Introduction to Electrical and Computer Engineering
Release Numbers MATLAB is updated regularly
MATLAB DENC 2533 ECADD LAB 9.
Lecture 1: Introduction
Welcome to the Fundamentals of Mathematics for Engineers Lab
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Experiment No. (1) - an introduction to MATLAB
Using Script Files and Managing Data
MATLAB Introduction MATLAB can be thought of as a powerful graphing calculator but with a lot more buttons! It is also a programming language, commands.
Introduction to Matlab
Chapter 2 MATLAB Environment
GE209 Introduction to Computer Programming Using Matlab
Presentation transcript:

Winter Semester 2014/2015 College of Engineering

Syllabus Instructor: Prof. M. Asif - Room 2B45 - Tel: Credit hours: 3 Office Hours: see office hours schedule posted Goals Learn the fundamentals of programming using Matlab Textbooks & reference materials Amos GILAT, MATLAB an Introduction with Applications, John Wiley&Sons Inc. 4 th Edition Hoboken, New Jersey, USA 2011 David Houcque, Introduction to Matlab for engineering students, class- notes,Northwestern University. (version 1.2, August 2005) Tools: The required software and hardware will be available in the college of engineering computer labs.

Syllabus : Outline WeekTopics 1 – 2 INTRODUCE  Introduction to programming  Introduction to the MATLAB environment  Introducing the command window, the script editor 3 – 4 USING THE MATLAB ENVIRONMENT  Data types, Constants, Variables  Operators and Built-In Functions, assignment statements  Types of errors 5 – 6 ALL ABOUT ARRAYS  Arrays in MATLAB  Matrices and matrix operations 7-8 ALL ABOUT PLOTTING  Plotting with MATLAB  Managing plots  Multiple plots  (MID-TERM EXAM)

Syllabus : Outline WeekTopics 10 – 11 WRITING PROGRAMS IN SCRIPT FILES  Script Files / Data files  Program composition and format  Algorithms  Simple Input/Output  Formatted output 9 – 10 CONTROL TECHNIQUES  IF constructs  FOR loops  WHILE loops 12 – 14 GOING BEYOND  Programming with functions  Applications

Syllabus : Grading  Computer Labs  (15%)  In-class instructor’s grades  (15%)  Mid-term exams  (30 %)  Final exam  (40 %) Important note : The Mid-Term Exam for GE 209 will be held on XXXX, XXXXXXX( ( إن شاء الله This date is reserved for all sections (GE209) and in no way it will be changed !!!

7 MATLAB Resources (latest Release R2014b) Getting Started – html document on Mathworks web site – /helpdesk/help/helpdesk.shtml –Click on “Getting Started” –Click on “This manual in PDF” Open or save to disk Help from MATLAB program Practice and learn from each other g-started-with-matlab html

8 A snap shot of the MATLAB working environment Command Window Command History Workspac e Command Window type commands Current Directory View folders and m-files Workspace View program variables Double click on a variable to see it in the Array Editor Command History view past commands save a whole session using diary

The Commands Window Command Window Recognizable by the Command prompt >> Basic arithmetic operations are available: addition + subtraction – division / multiplication * exponentiation ^ More complex operations and programming instructions Pressing “enter” key  “executes” or “runs” or “invokes” the operation

Arithmetic Operations Addition + >> 1+2 Subtraction->> 3-4 Multiplication*>> 5*6 Division/>> 7/8 Back Slash\>> 9\10 or 10/9 Exponentiation^>> 2^3 Priority rule : PEMDAS (Parentheses, Exponentiation, Multiplication, Division, Addition, Subtraction) >> ((2+5)^2+2*2-10/5)  = ?

Priority rules Precedence is the order operations are preformed, remember PEMDAS >> ((2+5)^2+2*2-10/5) innermost parentheses is done first 7^2 exponentiation is next 2*2 or 10/5 multiplication or division next ( – 2) addition or subtraction next Operations are done from left to right  final result gives 51