Advanced Mathematical Methods for Civil Engineering Applications Wonsiri Punurai, PhD

Size: px
Start display at page:

Download "Advanced Mathematical Methods for Civil Engineering Applications Wonsiri Punurai, PhD"

Transcription

1 Advanced Mathematical Methods for Civil Engineering Applications Wonsiri Punurai, PhD Department of Civil Engineering Room 69, EG Building Faculty of Engineering, Mahidol University Personal Web:

2 MATLAB 0 MATLAB M-files (script files) MATLAB Mat-files (binary files) Importing Data into /Eporting Data from MATLAB Displaying output on the command window Input and Output

3 MATLAB M-files Semi-interactive mode commands can be saved, refined and reused in MATLAB editor as needed. These files end in.m in all platforms. Any word processor can also be used to edit and save files as tet. Good for many problem types (ranging from small simple to large and comple models). Open built-in editor, select from menu: File > New > M-file

4 Sample M-files - I Try this eample, In MATLAB command window, type This single line defines two matrices (a and b) and computes their product (c). This can be done in the same fashion in m-file format. Open new m-file using editor. Now type the following % A sample file to compute a product of two matrices - Save the file as sample.m - Go back to Command Window and type sample to eecute file.

5 Sample M-files - II Try another eample, In MATLAB command window, type

6 Sample M-files - III.5 Plot of simple trigonometric functions sin(t) cos(t) sin(t)*cos(t) 0.5 Simple trigonometry plot θ (radius)

7 Function m-files

8 Eample function m-files

9 MATLAB Mat-files These files are convenient to store information that needs to be reused. These binary files end in.mat. Use the load and save commands at the MATLAB command line. They are platform independent.

10 Sample MAT-files From previous eample, we have created and eecuted m-file called sample.m % A sample file to compute a product of two matrices Type whos in the command window, ones will see a, b, c matrices. Let say we want to save these matrices (or variables) for later. Type save sample.mat Now try typing clear and then type load sample.mat Type whos again and you will see matrices a,b and c in workspace.

11 Importing Data into MATLAB Suppose that we have a data file (called road_elevation_centerline.tt) containing road elevation data at center line. The information provided includes: ) column station no. (ranging from to 5) 2) column 2 elevation at each station

12 Importing Data (I) Method in MATLAB command window, use load command >> load road_elevation_centerline.tt An array name road_elevation_centerline which has dimensions 52 was just being loaded. We know that first and second column corresponding to station # and elevation at centerline respectively. One can produce two new array variables station no road_elevation_centerline (:,) ; center_elev road_elevation_centerline (:,2) ;

13 Importing Data (II) Method 2 To import data go to the Editor Window Select Import from the File pull-down menu

14 Importing Data (III) Method use a function called dlmread >> road_elevation_centerline dlmread( road_elevation_centerline.tt ) >> station no road_elevation_centerline(:,); >> center_elev road_elevation_centerline(:,2);

15 Eporting data from MATLAB Save data into a file in any specific format. Use a function called dlmwrite to specify any delimiters needed. >> load road_elevation_centerline.tt >> dlmwrite( road_elevation_centerline.tt,ans) >> save road_elevation_centerline2.tt

16 Displaying output Use function disp to display to output screen. Typically used in conjunction with num2str to convert numerical to string variables

17 Input and Output

18 Tet Output

19 System of linear equations BASIC

20 System of linear equations ( unknowns) In mathematics, a system of linear equations is a collection of linear equations involving the same set of variables. is a system of three equations in a three variables, 2,

21 Solution of linear equations (by hand-i) A solution to a linear system is an assignment of numbers to the variables such that all the equation are simultaneously satisfied. Given In the matri form, we have A b To obtain [], one must compute det(a) and A det(a)

22 Solution of linear equations (by hand-ii) From A b Multiply both sides by A - A - A A - b I* A - b A product of A - bgives

23 Solution of linear equations (by MATLAB I) inv(a)*b;

24 Solution of linear equations (by MATLAB II)

25 Problems in relation to CE work Eample: The design of a steel truss Structural analysis in which the equations of equilibrium are applied at each node and written in terms of the unknown element internal forces [f] and known eternally applied load [P]. Both terms are related by [B][f] [P] where [B], in this case, represents statics matri.

26 System of linear equations (n unknowns)

27 Eample: Member forces in truss. Write down matrices [B], [f], and [P] at each node. 2. Solve for [f] matri for each node..

28 Solution: Member forces in truss (I) cos60 2 F F 750 sin 60 cos60 2 F F F sin 0 cos0 2 F F sin 60 cos60 2 F F sin 60 sin 0 cos60 cos0 F F F F F

29 What we just did is so called Matri Formulation

30 Requirements for a solution Later

Basics of Matlab Adriana Hera

Basics of Matlab Adriana Hera Basics of Matlab Adriana Hera ahera @wpi.edu - 2013- Reference: Matlab documentation 1 MATLAB Course 1. Getting started; Matlab Help; 2. Variables; 3. Operators; 4. Matlab functions; 5. Matrices; 6. Scripts;

More information

Advanced Mathematical Methods for Civil Engineering Applications Wonsiri Punurai, PhD

Advanced Mathematical Methods for Civil Engineering Applications Wonsiri Punurai, PhD Advanced Mathematical Methods for Civil Engineering Applications Wonsiri Punurai, PhD Department of Civil Engineering Room 6391, EG Building 3 Faculty of Engineering, Mahidol University Personal Web: www.egmu.net/~civil/wonsiri

More information

The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development

The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development Chapter 1 An Introduction to MATLAB Course Information (from Course

More information

I. This material refers to mathematical methods designed for facilitating calculations in matrix

I. This material refers to mathematical methods designed for facilitating calculations in matrix A FEW CONSIDERATIONS REGARDING MATRICES operations. I. This material refers to mathematical methods designed for facilitating calculations in matri In this case, we know the operations of multiplying two

More information

EGR 111 Plotting Data

EGR 111 Plotting Data EGR 111 Plotting Data This lab shows how to import data, plot data, and write script files. This lab also describes the Current Folder, the comment symbol ( % ), and MATLAB file names. New MATLAB Commands:

More information

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks MATLAB Basics Stanley Liang, PhD York University Configure a MATLAB Package Get a MATLAB Student License on Matworks Visit MathWorks at https://www.mathworks.com/ It is recommended signing up with a student

More information

ME 1020 Engineering Programming with MATLAB. Chapter 1 In-Class Assignment: 1.1, 1.3, 1.13, Topics Covered:

ME 1020 Engineering Programming with MATLAB. Chapter 1 In-Class Assignment: 1.1, 1.3, 1.13, Topics Covered: ME 1020 Engineering Programming with MATLAB Chapter 1 In-Class Assignment: 1.1, 1.3, 1.13, 1.16 Topics Covered: Use MATLAB as a calculator Save files to folders and open files from folders Create row vector

More information

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming using familiar mathematical notation The name Matlab stands

More information

Math 7 Elementary Linear Algebra PLOTS and ROTATIONS

Math 7 Elementary Linear Algebra PLOTS and ROTATIONS Spring 2007 PLOTTING LINE SEGMENTS Math 7 Elementary Linear Algebra PLOTS and ROTATIONS Example 1: Suppose you wish to use MatLab to plot a line segment connecting two points in the xy-plane. Recall that

More information

MAT 275 Laboratory 1 Introduction to MATLAB

MAT 275 Laboratory 1 Introduction to MATLAB MATLAB sessions: Laboratory 1 1 MAT 275 Laboratory 1 Introduction to MATLAB MATLAB is a computer software commonly used in both education and industry to solve a wide range of problems. This Laboratory

More information

Introduction to MatLab. Introduction to MatLab K. Craig 1

Introduction to MatLab. Introduction to MatLab K. Craig 1 Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations

More information

Interactive MATLAB use. Often, many steps are needed. Automated data processing is common in Earth science! only good if problem is simple

Interactive MATLAB use. Often, many steps are needed. Automated data processing is common in Earth science! only good if problem is simple Chapter 2 Interactive MATLAB use only good if problem is simple Often, many steps are needed We also want to be able to automate repeated tasks Automated data processing is common in Earth science! Automated

More information

Introduction to MATLAB LAB 1

Introduction to MATLAB LAB 1 Introduction to MATLAB LAB 1 1 Basics of MATLAB MATrix LABoratory A super-powerful graphing calculator Matrix based numeric computation Embedded Functions Also a programming language User defined functions

More information

Solving General Linear Equations w/ Excel

Solving General Linear Equations w/ Excel Solving General Linear Equations w/ Ecel Matri Operations in Ecel Ecel has commands for: Multiplication (mmult) matri multiplication Transpose (transpose) transpose a matri Determinant (mdeterm) calc the

More information

Advanced features of the Calculate signal tool

Advanced features of the Calculate signal tool Advanced features of the Calculate signal tool Case study: how to us the advanced features of the Calculate signal tool? 1 The calculate signal tool The calculate signal tool is one of the most useful

More information

PARAMETERIZATIONS OF PLANE CURVES

PARAMETERIZATIONS OF PLANE CURVES PARAMETERIZATIONS OF PLANE CURVES Suppose we want to plot the path of a particle moving in a plane. This path looks like a curve, but we cannot plot it like we would plot any other type of curve in the

More information

Numerical Methods for Civil Engineers

Numerical Methods for Civil Engineers Numerical Methods for Civil Engineers Lecture 3 - MATLAB 3 Programming with MATLAB : - Script m-filesm - Function m-filesm - Input and Output - Flow Control Mongkol JIRAVACHARADET S U R A N A R E E UNIVERSITY

More information

Fall 2014 MAT 375 Numerical Methods. Introduction to Programming using MATLAB

Fall 2014 MAT 375 Numerical Methods. Introduction to Programming using MATLAB Fall 2014 MAT 375 Numerical Methods Introduction to Programming using MATLAB Some useful links 1 The MOST useful link: www.google.com 2 MathWorks Webcite: www.mathworks.com/help/matlab/ 3 Wikibooks on

More information

COMPUTER PROGRAMMING AS A TOOL FOR THE ENGINEERING PROBLEMS ANALYSIS

COMPUTER PROGRAMMING AS A TOOL FOR THE ENGINEERING PROBLEMS ANALYSIS computer programming, engineering problems, MATLAB language Łukasz SOBASZEK * COMPUTER PROGRAMMING AS A TOOL FOR THE ENGINEERING PROBLEMS ANALYSIS Abstract The paper presents the use of computer programming

More information

Lab 1 Intro to MATLAB and FreeMat

Lab 1 Intro to MATLAB and FreeMat Lab 1 Intro to MATLAB and FreeMat Objectives concepts 1. Variables, vectors, and arrays 2. Plotting data 3. Script files skills 1. Use MATLAB to solve homework problems 2. Plot lab data and mathematical

More information

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS 4 SIMULINK 4 Simulink 4 Quick introduction General information Simulink is an etension of Matlab software for simulating dynamic

More information

Efficacy of Numerically Approximating Pi with an N-sided Polygon

Efficacy of Numerically Approximating Pi with an N-sided Polygon Peter Vu Brewer MAT66 Honors Topic Efficacy of umerically Approximating Pi with an -sided Polygon The quest for precisely finding the irrational number pi has been an endeavor since early human history.

More information

Programming in Mathematics. Mili I. Shah

Programming in Mathematics. Mili I. Shah Programming in Mathematics Mili I. Shah Starting Matlab Go to http://www.loyola.edu/moresoftware/ and login with your Loyola name and password... Matlab has eight main windows: Command Window Figure Window

More information

Matrix Inverse 2 ( 2) 1 = 2 1 2

Matrix Inverse 2 ( 2) 1 = 2 1 2 Name: Matrix Inverse For Scalars, we have what is called a multiplicative identity. This means that if we have a scalar number, call it r, then r multiplied by the multiplicative identity equals r. Without

More information

MATH STUDENT BOOK. 12th Grade Unit 7

MATH STUDENT BOOK. 12th Grade Unit 7 MATH STUDENT BOOK 1th Grade Unit 7 Unit 7 POLAR COORDINATES MATH 107 POLAR COORDINATES INTRODUCTION 1. POLAR EQUATIONS 5 INTRODUCTION TO POLAR COORDINATES 5 POLAR EQUATIONS 1 POLAR CURVES 19 POLAR FORMS

More information

Pre-calculus Chapter 4 Part 1 NAME: P.

Pre-calculus Chapter 4 Part 1 NAME: P. Pre-calculus NAME: P. Date Day Lesson Assigned Due 2/12 Tuesday 4.3 Pg. 284: Vocab: 1-3. Ex: 1, 2, 7-13, 27-32, 43, 44, 47 a-c, 57, 58, 63-66 (degrees only), 69, 72, 74, 75, 78, 79, 81, 82, 86, 90, 94,

More information

Mathworks (company that releases Matlab ) documentation website is:

Mathworks (company that releases Matlab ) documentation website is: 1 Getting Started The Mathematics Behind Biological Invasions Introduction to Matlab in UNIX Christina Cobbold and Tomas de Camino Beck as modified for UNIX by Fred Adler Logging in: This is what you do

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Andreas C. Kapourani (Credit: Steve Renals & Iain Murray) 9 January 08 Introduction MATLAB is a programming language that grew out of the need to process matrices. It is used extensively

More information

Introduction to MATLAB

Introduction to MATLAB CHEE MATLAB Tutorial Introduction to MATLAB Introduction In this tutorial, you will learn how to enter matrices and perform some matrix operations using MATLAB. MATLAB is an interactive program for numerical

More information

Matlab Programming Arrays and Scripts 1 2

Matlab Programming Arrays and Scripts 1 2 Matlab Programming Arrays and Scripts 1 2 Mili I. Shah September 10, 2009 1 Matlab, An Introduction with Applications, 2 nd ed. by Amos Gilat 2 Matlab Guide, 2 nd ed. by D. J. Higham and N. J. Higham Matrix

More information

Computer Programming ECIV 2303 Chapter 1 Starting with MATLAB Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering

Computer Programming ECIV 2303 Chapter 1 Starting with MATLAB Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering Computer Programming ECIV 2303 Chapter 1 Starting with MATLAB Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering 1 Introduction 2 Chapter l Starting with MATLAB This chapter

More information

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB MATLAB sessions: Laboratory MAT 75 Laboratory Matrix Computations and Programming in MATLAB In this laboratory session we will learn how to. Create and manipulate matrices and vectors.. Write simple programs

More information

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3.

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3. MATLAB Introduction Accessing Matlab... Matlab Interface... The Basics... 2 Variable Definition and Statement Suppression... 2 Keyboard Shortcuts... More Common Functions... 4 Vectors and Matrices... 4

More information

Matlab Introduction. Dr. Antonio A. Trani Professor Dept. of Civil and Environmental Engineering. Virginia Tech (copyright A.A.

Matlab Introduction. Dr. Antonio A. Trani Professor Dept. of Civil and Environmental Engineering. Virginia Tech (copyright A.A. Matlab Introduction Dr. Antonio A. Trani Professor Dept. of Civil and Environmental Engineering Virginia Tech (copyright A.A. Trani) Purpose of this Section To illustrate simple uses of the MATLAB TM Technical

More information

TUTORIAL 1 Introduction to Matrix Calculation using MATLAB TUTORIAL 1 INTRODUCTION TO MATRIX CALCULATION USING MATLAB

TUTORIAL 1 Introduction to Matrix Calculation using MATLAB TUTORIAL 1 INTRODUCTION TO MATRIX CALCULATION USING MATLAB INTRODUCTION TO MATRIX CALCULATION USING MATLAB Learning objectives Getting started with MATLAB and it s user interface Learn some of MATLAB s commands and syntaxes Get a simple introduction to use of

More information

Modeling Transformations Revisited

Modeling Transformations Revisited Modeling Transformations Revisited Basic 3D Transformations Translation Scale Shear Rotation 3D Transformations Same idea as 2D transformations o Homogeneous coordinates: (,,z,w) o 44 transformation matrices

More information

MATLAB = MATrix LABoratory. Interactive system. Basic data element is an array that does not require dimensioning.

MATLAB = MATrix LABoratory. Interactive system. Basic data element is an array that does not require dimensioning. Introduction MATLAB = MATrix LABoratory Interactive system. Basic data element is an array that does not require dimensioning. Efficient computation of matrix and vector formulations (in terms of writing

More information

MAT 343 Laboratory 2 Solving systems in MATLAB and simple programming

MAT 343 Laboratory 2 Solving systems in MATLAB and simple programming MAT 343 Laboratory 2 Solving systems in MATLAB and simple programming In this laboratory session we will learn how to 1. Solve linear systems with MATLAB 2. Create M-files with simple MATLAB codes Backslash

More information

Matlab Tutorial. Get familiar with MATLAB by using tutorials and demos found in MATLAB. You can click Start MATLAB Demos to start the help screen.

Matlab Tutorial. Get familiar with MATLAB by using tutorials and demos found in MATLAB. You can click Start MATLAB Demos to start the help screen. University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 298JA Fall 2015 Matlab Tutorial 1 Overview The goal of this tutorial is to help you get familiar with MATLAB

More information

Matlab Introduction. Dr. Antonio A. Trani Professor Dept. of Civil and Environmental Engineering. Virginia Tech (copyright A.A.

Matlab Introduction. Dr. Antonio A. Trani Professor Dept. of Civil and Environmental Engineering. Virginia Tech (copyright A.A. Matlab Introduction Dr. Antonio A. Trani Professor Dept. of Civil and Environmental Engineering Virginia Tech (copyright A.A. Trani) Purpose of this Section To illustrate simple uses of the MATLAB TM Technical

More information

Chapter 1: An Overview of MATLAB

Chapter 1: An Overview of MATLAB Chapter 1: An Overview of MATLAB MATLAB is: A high-level language and interactive environment for numerical computation, visualization, and programming MATLAB can: Be used as a calculator, easily create

More information

Experiment 8 SIMULINK

Experiment 8 SIMULINK Experiment 8 SIMULINK Simulink Introduction to simulink SIMULINK is an interactive environment for modeling, analyzing, and simulating a wide variety of dynamic systems. SIMULINK provides a graphical user

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 3 Creating, Organising & Processing Data Dr Richard Greenaway 3 Creating, Organising & Processing Data In this Workshop the matrix type is introduced

More information

Introduction to Scientific Computing with Matlab

Introduction to Scientific Computing with Matlab Introduction to Scientific Computing with Matlab Matlab is an interactive system for numerical computations. It is widely used in universities and industry, and has many advantages over languages such

More information

Why use MATLAB? Mathematcal computations. Used a lot for problem solving. Statistical Analysis (e.g., mean, min) Visualisation (1D-3D)

Why use MATLAB? Mathematcal computations. Used a lot for problem solving. Statistical Analysis (e.g., mean, min) Visualisation (1D-3D) MATLAB(motivation) Why use MATLAB? Mathematcal computations Used a lot for problem solving Statistical Analysis (e.g., mean, min) Visualisation (1D-3D) Signal processing (Fourier transform, etc.) Image

More information

2. Graphical Transformations of Functions

2. Graphical Transformations of Functions 2. Graphical Transformations of Functions In this section we will discuss how the graph of a function may be transformed either by shifting, stretching or compressing, or reflection. In this section let

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

Introduction to Matlab. Summer School CEA-EDF-INRIA 2011 of Numerical Analysis

Introduction to Matlab. Summer School CEA-EDF-INRIA 2011 of Numerical Analysis Introduction to Matlab 1 Outline What is Matlab? Matlab desktop & interface Scalar variables Vectors and matrices Exercise 1 Booleans Control structures File organization User defined functions Exercise

More information

An Introductory Tutorial on Matlab

An Introductory Tutorial on Matlab 1. Starting Matlab An Introductory Tutorial on Matlab We follow the default layout of Matlab. The Command Window is used to enter MATLAB functions at the command line prompt >>. The Command History Window

More information

MATLAB/Octave Tutorial

MATLAB/Octave Tutorial University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 298JA Fall 2017 MATLAB/Octave Tutorial 1 Overview The goal of this tutorial is to help you get familiar

More information

MatLab Just a beginning

MatLab Just a beginning MatLab Just a beginning P.Kanungo Dept. of E & TC, C.V. Raman College of Engineering, Bhubaneswar Introduction MATLAB is a high-performance language for technical computing. MATLAB is an acronym for MATrix

More information

Chapter 2 (Part 2) MATLAB Basics. dr.dcd.h CS 101 /SJC 5th Edition 1

Chapter 2 (Part 2) MATLAB Basics. dr.dcd.h CS 101 /SJC 5th Edition 1 Chapter 2 (Part 2) MATLAB Basics dr.dcd.h CS 101 /SJC 5th Edition 1 Display Format In the command window, integers are always displayed as integers Characters are always displayed as strings Other values

More information

Experiment 6 SIMULINK

Experiment 6 SIMULINK Experiment 6 SIMULINK Simulink Introduction to simulink SIMULINK is an interactive environment for modeling, analyzing, and simulating a wide variety of dynamic systems. SIMULINK provides a graphical user

More information

A Brief Introduction to MATLAB

A Brief Introduction to MATLAB A Brief Introduction to MATLAB MATLAB (Matrix Laboratory) is an interactive software system for numerical computations and graphics. As the name suggests, MATLAB was first designed for matrix computations:

More information

Goals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves

Goals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves Block #1: Vector-Valued Functions Goals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves 1 The Calculus of Moving Objects Problem.

More information

MAT 271 Recitation. MAT 271 Recitation. Sections 10.1,10.2. Lindsey K. Gamard, ASU SoMSS. 22 November 2013

MAT 271 Recitation. MAT 271 Recitation. Sections 10.1,10.2. Lindsey K. Gamard, ASU SoMSS. 22 November 2013 MAT 271 Recitation Sections 10.1,10.2 Lindsey K. Gamard, ASU SoMSS 22 November 2013 Agenda Today s agenda: 1. Introduction to concepts from 10.1 and 10.2 2. Example problems 3. Groupwork Section 10.1 Introduction

More information

The Mathematics of Big Data

The Mathematics of Big Data The Mathematics of Big Data Linear Algebra and MATLAB Philippe B. Laval KSU Fall 2015 Philippe B. Laval (KSU) Linear Algebra and MATLAB Fall 2015 1 / 23 Introduction We introduce the features of MATLAB

More information

MATLAB NOTES. Matlab designed for numerical computing. Strongly oriented towards use of arrays, one and two dimensional.

MATLAB NOTES. Matlab designed for numerical computing. Strongly oriented towards use of arrays, one and two dimensional. MATLAB NOTES Matlab designed for numerical computing. Strongly oriented towards use of arrays, one and two dimensional. Excellent graphics that are easy to use. Powerful interactive facilities; and programs

More information

MATLAB TUTORIAL FOR MATH/CHEG 305

MATLAB TUTORIAL FOR MATH/CHEG 305 MATLAB TUTORIAL FOR MATH/CHEG 305 February 1, 2002 Contents 1 Starting Matlab 2 2 Entering Matrices, Basic Operations 2 3 Editing Command Lines 4 4 Getting Help 4 5 Interrupting, Quitting Matlab 5 6 Special

More information

Lecture (03) Arrays. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2018, HUM107 Introduction to Engineering

Lecture (03) Arrays. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2018, HUM107 Introduction to Engineering Lecture (03) Arrays By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 2018, HUM107 Introduction to Engineering Characters and Strings Strings are defined by delimiting text with single quotation

More information

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013 Lab of COMP 406 MATLAB: Quick Start Lab tutor : Gene Yu Zhao Mailbox: csyuzhao@comp.polyu.edu.hk or genexinvivian@gmail.com Lab 1: 11th Sep, 2013 1 Where is Matlab? Find the Matlab under the folder 1.

More information

Review of Sine, Cosine, and Tangent for Right Triangle

Review of Sine, Cosine, and Tangent for Right Triangle Review of Sine, Cosine, and Tangent for Right Triangle In trigonometry problems, all vertices (corners or angles) of the triangle are labeled with capital letters. The right angle is usually labeled C.

More information

Matlab Tutorial, CDS

Matlab Tutorial, CDS 29 September 2006 Arrays Built-in variables Outline Operations Linear algebra Polynomials Scripts and data management Help: command window Elisa (see Franco next slide), Matlab Tutorial, i.e. >> CDS110-101

More information

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name:

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name: 1 Matlab Tutorial 1- What is Matlab? Matlab is a powerful tool for almost any kind of mathematical application. It enables one to develop programs with a high degree of functionality. The user can write

More information

3D Geometry and Camera Calibration

3D Geometry and Camera Calibration 3D Geometr and Camera Calibration 3D Coordinate Sstems Right-handed vs. left-handed 2D Coordinate Sstems ais up vs. ais down Origin at center vs. corner Will often write (u, v) for image coordinates v

More information

Image warping , , Computational Photography Fall 2017, Lecture 10

Image warping , , Computational Photography Fall 2017, Lecture 10 Image warping http://graphics.cs.cmu.edu/courses/15-463 15-463, 15-663, 15-862 Computational Photography Fall 2017, Lecture 10 Course announcements Second make-up lecture on Friday, October 6 th, noon-1:30

More information

User Defined Functions

User Defined Functions User Defined Functions Aaron S. Donahue Department of Civil and Environmental Engineering and Earth Sciences University of Notre Dame February 27, 2013 CE20140 A. S. Donahue (University of Notre Dame)

More information

6.3. Complex Fractions

6.3. Complex Fractions 6. Comple Fractions 1. Simplify comple fractions by simplifying the numerator and denominator (Method 1).. Simplify comple fractions by multiplying by a common denominator (Method ).. Compare the two methods

More information

Teaching Manual Math 2131

Teaching Manual Math 2131 Math 2131 Linear Algebra Labs with MATLAB Math 2131 Linear algebra with Matlab Teaching Manual Math 2131 Contents Week 1 3 1 MATLAB Course Introduction 5 1.1 The MATLAB user interface...........................

More information

German University in Cairo GUC Information Engineering & Technology Electronics, Communications, & Networks. A brief overview of:

German University in Cairo GUC Information Engineering & Technology Electronics, Communications, & Networks. A brief overview of: German University in Cairo GUC Information Engineering & Technology Electronics, Communications, & Networks Systems & Control Lab.- Manual A brief overview of: By: Eng. Moustafa Adly Contents. The MATLAB

More information

Student Instruction Sheet: Unit 4, Lesson 3. Primary Trigonometric Ratios

Student Instruction Sheet: Unit 4, Lesson 3. Primary Trigonometric Ratios Student Instruction Sheet: Unit 4, Lesson 3 Suggested Time: 75 minutes Primary Trigonometric Ratios What s important in this lesson: In this lesson, you will use trigonometry (sin, cos, tan) to measure

More information

Trigonometric Functions of Any Angle

Trigonometric Functions of Any Angle Trigonometric Functions of Any Angle MATH 160, Precalculus J. Robert Buchanan Department of Mathematics Fall 2011 Objectives In this lesson we will learn to: evaluate trigonometric functions of any angle,

More information

Chapter 4: Trigonometry

Chapter 4: Trigonometry Chapter 4: Trigonometry Section 4-1: Radian and Degree Measure INTRODUCTION An angle is determined by rotating a ray about its endpoint. The starting position of the ray is the of the angle, and the position

More information

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras Module No. #01 Lecture No. #1.1 Introduction to MATLAB programming

More information

Mathematical Techniques Chapter 10

Mathematical Techniques Chapter 10 PART FOUR Formulas FM 5-33 Mathematical Techniques Chapter 10 GEOMETRIC FUNCTIONS The result of any operation performed by terrain analysts will only be as accurate as the measurements used. An interpretation

More information

14.1 Similar Triangles and the Tangent Ratio Per Date Trigonometric Ratios Investigate the relationship of the tangent ratio.

14.1 Similar Triangles and the Tangent Ratio Per Date Trigonometric Ratios Investigate the relationship of the tangent ratio. 14.1 Similar Triangles and the Tangent Ratio Per Date Trigonometric Ratios Investigate the relationship of the tangent ratio. Using the space below, draw at least right triangles, each of which has one

More information

LEARNING TO PROGRAM WITH MATLAB. Building GUI Tools. Wiley. University of Notre Dame. Craig S. Lent Department of Electrical Engineering

LEARNING TO PROGRAM WITH MATLAB. Building GUI Tools. Wiley. University of Notre Dame. Craig S. Lent Department of Electrical Engineering LEARNING TO PROGRAM WITH MATLAB Building GUI Tools Craig S. Lent Department of Electrical Engineering University of Notre Dame Wiley Contents Preface ix I MATLAB Programming 1 1 Getting Started 3 1.1 Running

More information

Labview. Masood Ejaz

Labview. Masood Ejaz Labview A Tutorial By Masood Ejaz Note: This tutorial is a work in progress and written specially for CET 3464 Software Applications in Engineering Technology, a course offered as part of BSECET program

More information

A Quick Review of Trigonometry

A Quick Review of Trigonometry A Quick Review of Trigonometry As a starting point, we consider a ray with vertex located at the origin whose head is pointing in the direction of the positive real numbers. By rotating the given ray (initial

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Introduction MATLAB is an interactive package for numerical analysis, matrix computation, control system design, and linear system analysis and design available on most CAEN platforms

More information

4038 ADDITIONAL MATHEMATICS TOPIC 2: GEOMETRY AND TRIGONOMETRY SUB-TOPIC 2.2 COORDINATE GEOMETRY IN TWO DIMENSIONS

4038 ADDITIONAL MATHEMATICS TOPIC 2: GEOMETRY AND TRIGONOMETRY SUB-TOPIC 2.2 COORDINATE GEOMETRY IN TWO DIMENSIONS 4038 ADDITIONAL MATHEMATICS TOPIC : GEOMETRY AND TRIGONOMETRY SUB-TOPIC. COORDINATE GEOMETRY IN TWO DIMENSIONS CONTENT OUTLINE. Condition for two lines to be parallel or perpendicular. Mid-point of line

More information

Transformations. Examples of transformations: shear. scaling

Transformations. Examples of transformations: shear. scaling Transformations Eamples of transformations: translation rotation scaling shear Transformations More eamples: reflection with respect to the y-ais reflection with respect to the origin Transformations Linear

More information

Chapter 8 Complex Numbers & 3-D Plots

Chapter 8 Complex Numbers & 3-D Plots EGR115 Introduction to Computing for Engineers Complex Numbers & 3-D Plots from: S.J. Chapman, MATLAB Programming for Engineers, 5 th Ed. 2016 Cengage Learning Topics Introduction: Complex Numbers & 3-D

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Roger Hansen (rh@fys.uio.no) PGP, University of Oslo September 2004 Introduction to Matlab p.1/22 Contents Programming Philosophy What is Matlab? Example: Linear algebra Example:

More information

2.2 Creating & Initializing Variables in MATLAB

2.2 Creating & Initializing Variables in MATLAB 2.2 Creating & Initializing Variables in MATLAB Slide 5 of 27 Do-It-Yourself (DIY) EXERCISE 2-1 Answer the followings: (a) What is the difference between an array, a matrix, and a vector? (b) Let: c =

More information

ARRAY VARIABLES (ROW VECTORS)

ARRAY VARIABLES (ROW VECTORS) 11 ARRAY VARIABLES (ROW VECTORS) % Variables in addition to being singular valued can be set up as AN ARRAY of numbers. If we have an array variable as a row of numbers we call it a ROW VECTOR. You can

More information

What is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment

What is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment What is MATLAB? MATLAB PROGRAMMING Stands for MATrix LABoratory A software built around vectors and matrices A great tool for numerical computation of mathematical problems, such as Calculus Has powerful

More information

Chapter 2. MathScript

Chapter 2. MathScript Chapter 2. MathScript 2.1 What is MathScript MathScript is math-oriented, text-based computing language to address tasks mathematic calculation: Most suitable for Mathematic calculation. Matrix based data

More information

2.0 Trigonometry Review Date: Pythagorean Theorem: where c is always the.

2.0 Trigonometry Review Date: Pythagorean Theorem: where c is always the. 2.0 Trigonometry Review Date: Key Ideas: The three angles in a triangle sum to. Pythagorean Theorem: where c is always the. In trigonometry problems, all vertices (corners or angles) of the triangle are

More information

Answers to Worksheet 5, Math 272

Answers to Worksheet 5, Math 272 Answers to Worksheet 5, Math 7 1. Calculate the directional derivative of the function f(, y, z) = cos y sin z at the point a = (1, π/, 5π/6) in the direction u = (3, 0, 1). The gradient of f at a is (

More information

Lectures on Challenging Mathematics. Integrated Mathematics 3. Idea Math. Geometry (Part 2) Summer Internal Use

Lectures on Challenging Mathematics. Integrated Mathematics 3. Idea Math. Geometry (Part 2) Summer Internal Use Lectures on Challenging Mathematics c Copyright 2008 2018 Integrated Mathematics 3 Geometry (Part 2) Summer 2018 Zuming Feng Phillips Exeter cademy and IDE Math zfeng@exeter.edu Copyright c 2008 2018 IDE

More information

Maple Quick Start. Introduction. Talking to Maple

Maple Quick Start. Introduction. Talking to Maple Maple Quick Start Maplesoft, a division of Waterloo Maple Inc. 2008. All rights reserved. This product and content is protected by copyright. You may not copy, modify, transmit or reproduce this content

More information

Fall 2015 Math 337. Basic MatLab

Fall 2015 Math 337. Basic MatLab Fall 215 Math 337 Basic MatLab MatLab is a powerful software created by MathWorks, which is used extensively in mathematics, engineering, and the sciences. It has powerful numerical and graphic capabilities,

More information

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano MATLAB Lesson I Chiara Lelli Politecnico di Milano October 2, 2012 MATLAB MATLAB (MATrix LABoratory) is an interactive software system for: scientific computing statistical analysis vector and matrix computations

More information

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx 1 of 9 FreeMat Tutorial FreeMat is a general purpose matrix calculator. It allows you to enter matrices and then perform operations on them in the same way you would write the operations on paper. This

More information

Edexcel Core Mathematics 4 Integration

Edexcel Core Mathematics 4 Integration Edecel Core Mathematics 4 Integration Edited by: K V Kumaran kumarmaths.weebly.com Integration It might appear to be a bit obvious but you must remember all of your C work on differentiation if you are

More information

Introduction to MATLAB

Introduction to MATLAB 58:110 Computer-Aided Engineering Spring 2005 Introduction to MATLAB Department of Mechanical and industrial engineering January 2005 Topics Introduction Running MATLAB and MATLAB Environment Getting help

More information

Adding vectors. Let s consider some vectors to be added.

Adding vectors. Let s consider some vectors to be added. Vectors Some physical quantities have both size and direction. These physical quantities are represented with vectors. A common example of a physical quantity that is represented with a vector is a force.

More information

Class Objectives CE 211 SURVEYING ENGINEERING CLASS 09: LEVELING (3) 9/12/2011 VERTICAL CONTROL (BENCHMARK) SURVEYS

Class Objectives CE 211 SURVEYING ENGINEERING CLASS 09: LEVELING (3) 9/12/2011 VERTICAL CONTROL (BENCHMARK) SURVEYS CE 211 SURVEYING ENGINEERING CLASS 09: LEVELING (3) Ahmed Abdel-Rahim, Ph.D, P.E. Associate Professor, Civil Engineering Class Objectives Identify benchmark leveling procedures Develop field notes for

More information

Writing MATLAB Programs

Writing MATLAB Programs Outlines September 14, 2004 Outlines Part I: Review of Previous Lecture Part II: Review of Previous Lecture Outlines Part I: Review of Previous Lecture Part II: Control Structures If/Then/Else For Loops

More information