Spring 2016 Statics - TAM 210 & TAM 211 Discussion 1 - Intro to Matlab 1.

Slides:



Advertisements
Similar presentations
Introduction to MATLAB The language of Technical Computing.
Advertisements

1 EMT 101 – Engineering Programming Dr. Farzad Ismail School of Aerospace Engineering Universiti Sains Malaysia Nibong Tebal Pulau Pinang Week 10.
Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
Intro MATLAB: Special Purpose Computer Program Optimized to perform engineering and scientific calculations Implements the MATLAB programming language.
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 ES 156 Signals and Systems 2008 Harvard SEAS.
Introduction to MATLAB ES 156 Signals and Systems 2007 Harvard SEAS Prepared by Jiajun Gu.
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.
Digital Image Processing Lecture3: Introduction to MATLAB.
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
MATLAB and SimulinkLecture 11 To days Outline  Introduction  MATLAB Desktop  Basic Features  Branching Statements  Loops  Script file / Commando.
Chapter 10 Review: Matrix Algebra
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
Patrick Nichols Thursday, September 18, Linear Algebra Review.
EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN
Data, graphics, and programming in R 28.1, 30.1, Daily:10:00-12:45 & 13:45-16:30 EXCEPT WED 4 th 9:00-11:45 & 12:45-15:30 Teacher: Anna Kuparinen.
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
Introduction to MATLAB CBE 502 Mathematical Methods of Engineering Analysis.
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 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 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.
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.
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.
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.
MATLAB Environment ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
Matlab 14.html Cost: $100 Available in labs on Windows and Unix machines.
Introduction to Matlab
Introduction to MATLAB ENGR 1181 MATLAB 1. Opening MATLAB  Students, please open MATLAB now.  CLICK on the shortcut icon → Alternatively, select… start/All.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 6 Review: User Defined Functions Introduction to MATLAB 7 Engineering 161.
A string is an array of characters Strings have many uses in MATLAB Display text output Specify formatting for plots Input arguments for some functions.
Introduction to Engineering MATLAB – 7 Script Files - 2 Agenda Script files continued.
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.
Introduction to Matlab  Matlab is a software package for technical computation.  Matlab allows you to solve many numerical problems including - arrays.
1 Lecture 3 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
BRIAN D. HAHN AND DANIEL T. VALENTINE THIRD EDITION Essential MATLAB® for Engineers and Scientists.
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
Matlab for Engineers Matlab Environment Chapter 2.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Computer Graphics Mathematical Fundamentals Lecture 10 Taqdees A. Siddiqi
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
ECE 1304 Introduction to Electrical and Computer Engineering
Introduction to MATLAB
Computer Application in Engineering Design
Introduction to Matlab
Lecture: MATLAB Chapter 1 Introduction
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
Matrix Operations.
MATLAB DENC 2533 ECADD LAB 9.
Lecture 1: Introduction
MATH 493 Introduction to MATLAB
Use of Mathematics using Technology (Maltlab)
Unit 3: Matrices
Digital Image Processing
Experiment No. (1) - an introduction to MATLAB
Using Script Files and Managing Data
Matlab Basics Tutorial
Presentation transcript:

Spring 2016 Statics - TAM 210 & TAM 211 Discussion 1 - Intro to Matlab 1

TAM 210/211 Team Discussion 1 - Intro to Matlab 2

MAIN PAGE Course websites More website links here Discussion 1 - Intro to Matlab 3

Discussion group activity – 8% of grade Work in groups of 3-4 students Goals: Gain experience in team-work Apply engineering concepts learned in lecture to real-world problems or hands- on activities Be prompt: if you are more than 5 minutes late, you will not be allowed to complete the activity You need to attend the discussion in which you are registered, otherwise, your assignment will not be graded dubishere.com Discussion 1 - Intro to Matlab 4

Matlab clinic Friday, January 22 MEL 1001 – all day Written assignment based on Matlab code Due January 29 Available on Compass Must submit to Compass Discussion 1 - Intro to Matlab 5

Forces are vectors Discussion 1 - Intro to Matlab 6 Vectors have direction and magnitude We will use the following operations with forces Adding Subtracting Calculating the resultant Taking the dot product Taking the cross product with moment arm vectors

Why use Matlab to do these operations? It will make our life easier! Avoid rounding errors 1% rule for Prairie Learn and Mastering Engineering Faster than doing the calculations by hand, especially useful for timed quizzes and exams Discussion 1 - Intro to Matlab 7

What is MATLAB High level language for technical computing Stands for MATrix LABoratory Everything is a matrix - easy to do linear algebra Discussion 1 - Intro to Matlab 8

MATLAB Desktop Discussion 1 - Intro to Matlab 9 Command History: What you type in the box to the left of this one is saved here Workspace: Variables you define are displayed here Editor: A place to write commands that can be saved and run in real time or later Current Directory: A window that shows which folder you are in and all the files that are in it Command Window: A place to write commands, perform calculations

Workspace Matlab remembers old commands And variables as well Each Function maintains its own scope The keyword clear removes all variables from workspace The keyword who lists the variables Discussion 1 - Intro to Matlab 10

Matrices & Vectors All (almost) entities in MATLAB are matrices Easy to define: Order of Matrix - m=no. of rows, n=no. of columns Use ‘, ’ or ‘ ’ to separate row elements -- use ‘ ; ’ to separate rows >> A = [16 3; 5 10] A = Discussion 1 - Intro to Matlab 11 >> A = [ ] A =

Defining vectors in Matlab Discussion 1 - Intro to Matlab 12 >> A = [ ] A  variable name How many rows are in A? How many columns are in A? A(1,1) = -5 A(1,2) = 1 A(1,3) = ?? How do we edit a vector?

Adding vectors in Matlab Discussion 1 - Intro to Matlab 13 >> A = [ ] To add Define vector 1 Define vector 2 C = A + B; C = ??? (always define your solution as a variable, in case you need it in a later step) To subtract…. >> B = [6 -3 4]

Dot and cross product, determinant det(D) : determinant of a square matrix dot(A,B): dot product of two vectors cross(A,B): cross product of two vectors Discussion 1 - Intro to Matlab 14

Trigonometric and their inverse cos(x)acos(x) sin(x)asin(x) tan(x)atan(x) cot(x)acot(x) csc(x)acsc(x) sec(x)asec(x) atan2(x,y) Useful trig functions Discussion 1 - Intro to Matlab 15 Note that all of these are in radians Cosd = cosine(# in degrees) OR Convert from radians to degrees rad2deg Deg2rad Do the math itself, pi is predefined in Matlab as “pi”