A very short introduction to Matlab and Octave
|
|
- Arline Cameron
- 5 years ago
- Views:
Transcription
1 A very short introduction to Matlab and Octave Claude Fuhrer 09 November 2016
2 Contents 1 Installation 3 2 Variables and literal values Variables Exercises Litteral values Numbers format Generating range of datas Operators Arithmetic operators Integer arithmetic Trigonometric function Examples of calculations An example: numerical integration The complete code
3 1 Installation The software GNU Octave is a mathematical software mainly devoted to simulation and numerical computing. It is a free software that is the source code for GNU Octave may be freely donwloaded and examined. There is an important community of user, sharing informations, pieces of code or even complete modules to solve some common or less common problem of engineering. To install GNU Octave, one can download it from the official repository which is at the adress The last stable version is version which was released on July 2, Clicking on the download button, at the right of the page, one can download version for Windows, MacOS or Linux (the official development platform). 2 Variables and literal values 2.1 Variables Matlab and Octave does not process variables like C does. For these two languages there is no need to declare a variable before one can use it. The type of a variable is automatically inferred by the program with its content. One can simply write: a=5 ans=0 a = 8 0 To be sure that a computation starts with a clean environment, one can use the clear all instruction. clear all a = 5 a ans=0 a = 5 a = 5 0 The list of all already variables (with optionally their size) can be found with the who or whos instruction. b = 3 a = 5 whos 3
4 b = 3 a = 5 Variables in the current scope: Attr Name Size Bytes Class ==== ==== ==== ===== ===== a 1x1 8 double b 1x1 8 double Total is 2 elements using 16 bytes The name MATLAB is an abbreviation for MATrix LABoratory. It means that the strength of MATLAB is mainly is the processing of vectorised data. This does not mean that all values processed by this way are vectors in the sense of linear algebra, but mostly that the same processing may be applied to many different data at one time. For that goal, Matlab provides a simple way to enter line or column vectors or two-dimensionnal arrays of data. x = [1, 2, 3] # x is a line vector y = [1 ; 2 ; 3] # y is a column vector z = [5 6 7] # z is another line vector 0; x = y = z = One can see that, for a line vector, the elements are separated by a comma or space. The use of the coma is highly recommended. For a column vector, the elements are separated by a semicolon. Two-dimensional arrays (or matrices) are simply entered by the combination of these two manner. A=[1,2,3 ; 4,5,6; 7,8,9] ans=0 4
5 A = More over, one should remark that the Matlab programming language is case sensitive. a = 4 A = 5 a A ans=0 a = 4 A = 5 a = 4 A = Exercises Try it by yourself: clear all m = 7 m+2 m m^2 m = m^2 clear m ans=0 clear all A=[7,8,9,10,11,12] A(2:3) B=[0:2:10] C = transpose(1:2:11) dot(b,c) D=rand(6,6) E=linspace(0,5,6) E * E E * E 5
6 1. Questions: a) What does the expression A(2:3)? b) What does the expression B=[0:2:10]? c) What does the function transpose()? d) What does the function rand()? e) What does the function linspace(0,5,6)? Is it possible to replace it with another already known expression? 2.2 Litteral values The use of types in Matlab is not so strict as for example in the C programming language. The language provides many types: double : the mostly used type single logical : a boolean value char : for a single character int8, int16, int32, int64 : signed integers on 8, 16, 32, or 64 bits uint8, uint16, uint32, uint64 : unsigned integers typeinfo(2) typeinfo(2.2) ans= 0; scalar scalar 2.3 Numbers format Matlab provides many format to enhance the lisibility of numbers. Theses formats are: Format Example format short format short e (+001) format long format long e (+001) format short g format long g format hex 403f6a7a e format rat 3550/113 format bank
7 2.4 Generating range of datas Within Octave it is always necessary to write explicitely a set of data, if these data are equally reparted over an interval. For example, on can write: 0:1:10 0:5:50 0:0.1:3 ans= Columns 1 through 7: Columns 8 through 14: Columns 15 through 21: Columns 22 through 28: Columns 29 through 31: The command x:y:z generates a set of values, starting at x, ending at z with a step y. There is a similar command, called linspace() which has almost the same effect. For example, one can type: 7
8 linspace(0,10,11) linspace(0,50,11) linspace(0,3,31) Columns 1 through 8: Columns 9 through 16: Columns 17 through 24: Columns 25 through 31: Naturally, one can use every value as limit to generates these datas series. exemple: 0:pi/5: 2 * pi linspace(0, 2 * pi, 11) For Columns 1 through 7: Columns 8 through 11: 8
9 Columns 1 through 8: Columns 9 through 11: Operators 3.1 Arithmetic operators The arithmetical operators defined by Matlab are the standard operators, that is: + : addition, e.g : substraction e.g. 4-2 * : multiplication / : real division e.g. 4 / 3 \ : inverse division : e.g. 4 \ 3 is the same as 3 / 4. Moreover, as Matlab provides tools to vectorize operation, all these operations may be preceeded by a dot to apply them element by elements. x = [1, 2, 3] y = [2, 4, 6] x * y # A line vector cannot be multiplied by another line vector disp("result of element by element multiplication") x. * y # Multiplication element by element disp("result of : x * y") x * y # A quote means "transpose" disp("result of : x * y ") x * y # This computes the standard scalar product 0; 9
10 x = y = Result of element by element multiplication Result of : x * y Result of : x * y Integer arithmetic As previously seen the standard aritmetical operators produce double values. If one need to do integer arithmetic (mainly a division), one could use the following functions: clear all x = 17 y = 5 idivide(x,y) mod(x,y) x = 17 y = Trigonometric function As a scientific computing tool, Octave provides a whole set of trigonometric function. Normally these functions use angle in radians (the mathematical way to define 10
11 angles), but one can also find their equivalent for angles given in degree. The direct functions are: Function ~sin() ~cos() ~tan() ~cot() sec() csc() Description Sine of an angle in radians Cosine of an angle in radians Tangent of an angle in radians Cotangent of an angle in radians Secant of an angle in radians Cosecant of an angle in radians The inverse functions are: Function asin() acos() atan() acot() asec() acsc() Description The angle in radians for the given sine value The angle in radians for the given cosine value The angle in radians for the given tangent (in the first quadrant) The angle in radian for the given cotangent The angle in radians for the secant value The angle in radians for the given cosecant Adding the suffix d to these functions gives the equivalent functions but computing angles in degrees. For exemple sind(), cosd(), asind(), acosd(), etc Examples of calculations As for (almost) every other operators and functions defined by Octave, the trigonometric function may compute many values with a simple instruction. For example, one can write: clear all angle = 0:10:180 sind(angle) angle = Columns 1 through 13: Columns 14 through 19:
12 Columns 1 through 8: Columns 9 through 16: Columns 17 through 19: An example: numerical integration Suppose that one have the function f (x) = sin(x) + sin( 2 x ) between the limits 0 and π. The graph of this function is given by: One now would be able to compute the area between the graph of this function and the x -axis. For that goal one can use the integration operation, but for the current example, one will compute an approximation using the rectangle method. That is, for every computed value of the function (f (x))) one compute the area of a rectangle of height f (x) and width x i = x i+1 x i. One can show this by: 12
13 The area of one rectangle is then area = f (x i ) x i. One can compute the area of all rectangles defined by all x i and store these area into one rectangle. In our case, the value of x i is the same for all x i, but one will ignore this property and explicitely compute all the x i value The complete code # Example 1 : Numerical integration of the function # f(x) = sin(x) + sin(x/2) # over the interval [0:2pi] # frc1 22 novembre 2016, v1.0 # Step 1 : generate N values equally spaced over the intervall [0:2pi] N=10; x=linspace(0,2 * pi,10); # Step 2: compute the function f(x) for each of the values of the # vector x y=sin(x) + sin(x/2); # Step 3: compute the vector deltax which contains the difference # between the value x(i+1) and x(i) for each value of the # vector x deltax = diff(x) # REMARK : The number of elements of vector deltax is one less # than the number of element of the vector y # Step 4: now compute the surface of each rectangle over the # interval [0:2pi]. # This surface is given by the formula # rectsurf = y(i) * deltax(i), # but, due to fact that the vector deltax has not the same # number of elements this computing should be slightly adatpted rect = y(1:end-1). * deltax; # Step 5: The surface under the curve of the function can be computed by # summing the surface of all rectangles. sum(rect) 13
Section 5.3 Graphs of the Cosecant and Secant Functions 1
Section 5.3 Graphs of the Cosecant, Secant, Tangent, and Cotangent Functions The Cosecant Graph RECALL: 1 csc x so where sin x 0, csc x has an asymptote. sin x To graph y Acsc( Bx C) D, first graph THE
More informationLAB 1 General MATLAB Information 1
LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by
More informationThis is called the horizontal displacement of also known as the phase shift.
sin (x) GRAPHS OF TRIGONOMETRIC FUNCTIONS Definitions A function f is said to be periodic if there is a positive number p such that f(x + p) = f(x) for all values of x. The smallest positive number p for
More informationTrigonometric 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 informationMath 144 Activity #3 Coterminal Angles and Reference Angles
144 p 1 Math 144 Activity #3 Coterminal Angles and Reference Angles For this activity we will be referring to the unit circle. Using the unit circle below, explain how you can find the sine of any given
More informationScript started on Thu 25 Aug :00:40 PM CDT
Script started on Thu 25 Aug 2016 02:00:40 PM CDT < M A T L A B (R) > Copyright 1984-2014 The MathWorks, Inc. R2014a (8.3.0.532) 64-bit (glnxa64) February 11, 2014 To get started, type one of these: helpwin,
More informationIntroduction to Scientific and Engineering Computing, BIL108E. Karaman
USING MATLAB INTRODUCTION TO SCIENTIFIC & ENGINEERING COMPUTING BIL 108E, CRN24023 To start from Windows, Double click the Matlab icon. To start from UNIX, Dr. S. Gökhan type matlab at the shell prompt.
More informationGeneral MATLAB Information 1
Introduction to MATLAB General MATLAB Information 1 Once you initiate the MATLAB software, you will see the MATLAB logo appear and then the MATLAB prompt >>. The prompt >> indicates that MATLAB is awaiting
More informationStarting MATLAB To logon onto a Temple workstation at the Tech Center, follow the directions below.
What is MATLAB? MATLAB (short for MATrix LABoratory) is a language for technical computing, developed by The Mathworks, Inc. (A matrix is a rectangular array or table of usually numerical values.) MATLAB
More informationMath 1330 Section 5.3 Graphs of the Tangent, Cotangent, Secant, and Cosecant Functions
Math 1330 Section 5.3 Graphs of the Tangent, Cotangent, Secant, and Cosecant Functions In this section, you will learn to graph the rest of the trigonometric functions. We can use some information from
More informationThis is a basic tutorial for the MATLAB program which is a high-performance language for technical computing for platforms:
Appendix A Basic MATLAB Tutorial Extracted from: http://www1.gantep.edu.tr/ bingul/ep375 http://www.mathworks.com/products/matlab A.1 Introduction This is a basic tutorial for the MATLAB program which
More informationSum and Difference Identities. Cosine Sum and Difference Identities: cos A B. does NOT equal cos A. Cosine of a Sum or Difference. cos B.
7.3 Sum and Difference Identities 7-1 Cosine Sum and Difference Identities: cos A B Cosine of a Sum or Difference cos cos does NOT equal cos A cos B. AB AB EXAMPLE 1 Finding Eact Cosine Function Values
More informationThe Graphing Calculator
Chapter 23 The Graphing Calculator To display the calculator, select Graphing Calculator from the Window menu. The calculator is displayed in front of the other windows. Resize or re-position the Graphing
More informationSection 6.2 Graphs of the Other Trig Functions
Section 62 Graphs of the Other Trig Functions 369 Section 62 Graphs of the Other Trig Functions In this section, we will explore the graphs of the other four trigonometric functions We ll begin with the
More informationx,,, (All real numbers except where there are
Section 5.3 Graphs of other Trigonometric Functions Tangent and Cotangent Functions sin( x) Tangent function: f( x) tan( x) ; cos( x) 3 5 Vertical asymptotes: when cos( x ) 0, that is x,,, Domain: 3 5
More informationMath 1330 Test 3 Review Sections , 5.1a, ; Know all formulas, properties, graphs, etc!
Math 1330 Test 3 Review Sections 4.1 4.3, 5.1a, 5. 5.4; Know all formulas, properties, graphs, etc! 1. Similar to a Free Response! Triangle ABC has right angle C, with AB = 9 and AC = 4. a. Draw and label
More informationMATLAB Workshop Dr. M. T. Mustafa Department of Mathematical Sciences. Introductory remarks
MATLAB Workshop Dr. M. T. Mustafa Department of Mathematical Sciences Introductory remarks MATLAB: a product of mathworks www.mathworks.com MATrix LABoratory What can we do (in or ) with MATLAB o Use like
More informationIntroduction to GNU-Octave
Introduction to GNU-Octave Dr. K.R. Chowdhary, Professor & Campus Director, JIETCOE JIET College of Engineering Email: kr.chowdhary@jietjodhpur.ac.in Web-Page: http://www.krchowdhary.com July 11, 2016
More informationPrecalculus: Graphs of Tangent, Cotangent, Secant, and Cosecant Practice Problems. Questions
Questions 1. Describe the graph of the function in terms of basic trigonometric functions. Locate the vertical asymptotes and sketch two periods of the function. y = 3 tan(x/2) 2. Solve the equation csc
More informationNotice there are vertical asymptotes whenever y = sin x = 0 (such as x = 0).
1 of 7 10/1/2004 6.4 GRAPHS OF THE OTHER CIRCULAR 6.4 GRAPHS OF THE OTHER CIRCULAR Graphs of the Cosecant and Secant Functions Graphs of the Tangent and Cotangent Functions Addition of Ordinates Graphs
More informationChapter 4 Using Fundamental Identities Section USING FUNDAMENTAL IDENTITIES. Fundamental Trigonometric Identities. Reciprocal Identities
Chapter 4 Using Fundamental Identities Section 4.1 4.1 USING FUNDAMENTAL IDENTITIES Fundamental Trigonometric Identities Reciprocal Identities csc x sec x cot x Quotient Identities tan x cot x Pythagorean
More informationIntroduction to MATLAB
Introduction to MATLAB Basics MATLAB is a high-level interpreted language, and uses a read-evaluate-print loop: it reads your command, evaluates it, then prints the answer. This means it works a lot like
More informationDownloaded from
Top Concepts Class XI: Maths Ch : Trigonometric Function Chapter Notes. An angle is a measure of rotation of a given ray about its initial point. The original ray is called the initial side and the final
More informationPrecalculus Solutions Review for Test 6 LMCA Section
Precalculus Solutions Review for Test 6 LMCA Section 4.5-4.8 Memorize all of the formulas and identities. Here are some of the formulas for chapter 5. BasicTrig Functions opp y hyp r sin csc hyp r opp
More informationIntroduction to Matlab
Introduction to Matlab Eugeniy E. Mikhailov The College of William & Mary Lecture 02 Eugeniy Mikhailov (W&M) Practical Computing Lecture 02 1 / 27 Matlab variable types Eugeniy Mikhailov (W&M) Practical
More informationUnit Circle. Project Response Sheet
NAME: PROJECT ACTIVITY: Trigonometry TOPIC Unit Circle GOALS MATERIALS Explore Degree and Radian Measure Explore x- and y- coordinates on the Unit Circle Investigate Odd and Even functions Investigate
More informationMath 1330 Final Exam Review Covers all material covered in class this semester.
Math 1330 Final Exam Review Covers all material covered in class this semester. 1. Give an equation that could represent each graph. A. Recall: For other types of polynomials: End Behavior An even-degree
More informationMath 2412 Activity 4(Due with Final Exam)
Math Activity (Due with Final Exam) Use properties of similar triangles to find the values of x and y x y 7 7 x 5 x y 7 For the angle in standard position with the point 5, on its terminal side, find the
More information1. GRAPHS OF THE SINE AND COSINE FUNCTIONS
GRAPHS OF THE CIRCULAR FUNCTIONS 1. GRAPHS OF THE SINE AND COSINE FUNCTIONS PERIODIC FUNCTION A period function is a function f such that f ( x) f ( x np) for every real numer x in the domain of f every
More informationUnit 7: Trigonometry Part 1
100 Unit 7: Trigonometry Part 1 Right Triangle Trigonometry Hypotenuse a) Sine sin( α ) = d) Cosecant csc( α ) = α Adjacent Opposite b) Cosine cos( α ) = e) Secant sec( α ) = c) Tangent f) Cotangent tan(
More informationIntroduction to Octave/Matlab. Deployment of Telecommunication Infrastructures
Introduction to Octave/Matlab Deployment of Telecommunication Infrastructures 1 What is Octave? Software for numerical computations and graphics Particularly designed for matrix computations Solving equations,
More informationThe Sine and Cosine Functions
Concepts: Graphs of Tangent, Cotangent, Secant, and Cosecant. We obtain the graphs of the other trig functions by thinking about how they relate to the sin x and cos x. The Sine and Cosine Functions Page
More informationA. Matrix-wise and element-wise operations
USC GSBME MATLAB CLASS Reviewing previous session Second session A. Matrix-wise and element-wise operations A.1. Matrix-wise operations So far we learned how to define variables and how to extract data
More informationIntroduction to Matlab. Matlab variable types. Matlab variable types. Matlab variable types. Notes. Eugeniy E. Mikhailov. Lecture 02. Notes.
Introduction to Matlab Eugeniy E. Mikhailov The College of William & Mary Lecture 02 Eugeniy Mikhailov (W&M) Practical Computing Lecture 02 1 / 26 Matlab variable types Eugeniy Mikhailov (W&M) Practical
More informationName: Teacher: Pd: Algebra 2/Trig: Trigonometric Graphs (SHORT VERSION)
Algebra 2/Trig: Trigonometric Graphs (SHORT VERSION) In this unit, we will Learn the properties of sine and cosine curves: amplitude, frequency, period, and midline. Determine what the parameters a, b,
More informationChapter 4. Trigonometric Functions. 4.6 Graphs of Other. Copyright 2014, 2010, 2007 Pearson Education, Inc.
Chapter 4 Trigonometric Functions 4.6 Graphs of Other Trigonometric Functions Copyright 2014, 2010, 2007 Pearson Education, Inc. 1 Objectives: Understand the graph of y = tan x. Graph variations of y =
More informationA trigonometric ratio is a,
ALGEBRA II Chapter 13 Notes The word trigonometry is derived from the ancient Greek language and means measurement of triangles. Section 13.1 Right-Triangle Trigonometry Objectives: 1. Find the trigonometric
More informationPRECALCULUS MATH Trigonometry 9-12
1. Find angle measurements in degrees and radians based on the unit circle. 1. Students understand the notion of angle and how to measure it, both in degrees and radians. They can convert between degrees
More information4.1: Angles & Angle Measure
4.1: Angles & Angle Measure In Trigonometry, we use degrees to measure angles in triangles. However, degree is not user friendly in many situations (just as % is not user friendly unless we change it into
More informationGraphs of Other Trig Functions
Graph y = tan. y 0 0 6 3 3 3 5 6 3 3 1 Graphs of Other Trig Functions.58 3 1.7 undefined 3 3 3 1.7-1 0.58 3 CHAT Pre-Calculus 3 The Domain is all real numbers ecept multiples of. (We say the domain is
More informationARRAY 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 informationSNAP Centre Workshop. Introduction to Trigonometry
SNAP Centre Workshop Introduction to Trigonometry 62 Right Triangle Review A right triangle is any triangle that contains a 90 degree angle. There are six pieces of information we can know about a given
More informationExperiment 1: Introduction to MATLAB I. Introduction. 1.1 Objectives and Expectations: 1.2 What is MATLAB?
Experiment 1: Introduction to MATLAB I Introduction MATLAB, which stands for Matrix Laboratory, is a very powerful program for performing numerical and symbolic calculations, and is widely used in science
More informationDr 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 informationSection 7.5 Inverse Trigonometric Functions II
Section 7.5 Inverse Trigonometric Functions II Note: A calculator is helpful on some exercises. Bring one to class for this lecture. OBJECTIVE 1: Evaluating composite Functions involving Inverse Trigonometric
More information1. The circle below is referred to as a unit circle. Why is this the circle s name?
Right Triangles and Coordinates on the Unit Circle Learning Task: 1. The circle below is referred to as a unit circle. Why is this the circle s name? Part I 2. Using a protractor, measure a 30 o angle
More informationA very brief Matlab introduction
A very brief Matlab introduction Siniša Krajnović January 24, 2006 This is a very brief introduction to Matlab and its purpose is only to introduce students of the CFD course into Matlab. After reading
More information5.2 Verifying Trigonometric Identities
360 Chapter 5 Analytic Trigonometry 5. Verifying Trigonometric Identities Introduction In this section, you will study techniques for verifying trigonometric identities. In the next section, you will study
More informationMAT 115: Precalculus Mathematics Constructing Graphs of Trigonometric Functions Involving Transformations by Hand. Overview
MAT 115: Precalculus Mathematics Constructing Graphs of Trigonometric Functions Involving Transformations by Hand Overview Below are the guidelines for constructing a graph of a trigonometric function
More informationModule 4 Graphs of the Circular Functions
MAC 1114 Module 4 Graphs of the Circular Functions Learning Objectives Upon completing this module, you should be able to: 1. Recognize periodic functions. 2. Determine the amplitude and period, when given
More informationEbooks Chemical Engineering
Uploaded by: Ebooks Chemical Engineering https://www.facebook.com/pages/ebooks-chemical-engineering/238197077030 For More Books, softwares & tutorials Related to Chemical Engineering Join Us @facebook:
More information8-1 Simple Trigonometric Equations. Objective: To solve simple Trigonometric Equations and apply them
Warm Up Use your knowledge of UC to find at least one value for q. 1) sin θ = 1 2 2) cos θ = 3 2 3) tan θ = 1 State as many angles as you can that are referenced by each: 1) 30 2) π 3 3) 0.65 radians Useful
More informationChapter 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 informationINVERSE TRIGONOMETRIC FUNCTIONS
INVERSE TRIGNMETRIC FUNCTINS INTRDUCTIN In chapter we learnt that only one-one and onto functions are invertible. If a function f is one-one and onto then its inverse exists and is denoted by f. We shall
More informationBasic Graphs of the Sine and Cosine Functions
Chapter 4: Graphs of the Circular Functions 1 TRIG-Fall 2011-Jordan Trigonometry, 9 th edition, Lial/Hornsby/Schneider, Pearson, 2009 Section 4.1 Graphs of the Sine and Cosine Functions Basic Graphs of
More informationAlgebra II. Chapter 13 Notes Sections 13.1 & 13.2
Algebra II Chapter 13 Notes Sections 13.1 & 13.2 Name Algebra II 13.1 Right Triangle Trigonometry Day One Today I am using SOHCAHTOA and special right triangle to solve trig problems. I am successful
More informationReview of Trigonometry
Worksheet 8 Properties of Trigonometric Functions Section Review of Trigonometry This section reviews some of the material covered in Worksheets 8, and The reader should be familiar with the trig ratios,
More informationJune 6 Math 1113 sec 002 Summer 2014
June 6 Math 1113 sec 002 Summer 2014 Sec. 6.4 Plotting f (x) = a sin(bx c) + d or f (x) = a cos(bx c) + d Amplitude is a. If a < 0 there is a reflection in the x-axis. The fundamental period is The phase
More informationSection 7.1. Standard position- the vertex of the ray is at the origin and the initial side lies along the positive x-axis.
1 Section 7.1 I. Definitions Angle Formed by rotating a ray about its endpoint. Initial side Starting point of the ray. Terminal side- Position of the ray after rotation. Vertex of the angle- endpoint
More informationProgramming in MATLAB
trevor.spiteri@um.edu.mt http://staff.um.edu.mt/trevor.spiteri Department of Communications and Computer Engineering Faculty of Information and Communication Technology University of Malta 17 February,
More informationLab 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 information4.6 GRAPHS OF OTHER TRIGONOMETRIC FUNCTIONS
4.6 GRAPHS OF OTHER TRIGONOMETRIC FUNCTIONS Copyright Cengage Learning. All rights reserved. What You Should Learn Sketch the graphs of tangent functions. Sketch the graphs of cotangent functions. Sketch
More informationAP Calculus Summer Review Packet
AP Calculus Summer Review Packet Name: Date began: Completed: **A Formula Sheet has been stapled to the back for your convenience!** Email anytime with questions: danna.seigle@henry.k1.ga.us Complex Fractions
More informationUnit 2 Intro to Angles and Trigonometry
HARTFIELD PRECALCULUS UNIT 2 NOTES PAGE 1 Unit 2 Intro to Angles and Trigonometry This is a BASIC CALCULATORS ONLY unit. (2) Definition of an Angle (3) Angle Measurements & Notation (4) Conversions of
More informationIntroduction to MATLAB
Introduction to MATLAB Brett Ninness Department of Electrical and Computer Engineering The University of Newcastle, Australia. The name MATLAB is a sort of acronym for Matrix Laboratory. In fact, MATLAB
More information2.7 Graphing Tangent, Cotangent, Secant, and
www.ck12.org Chapter 2. Graphing Trigonometric Functions 2.7 Graphing Tangent, Cotangent, Secant, and Cosecant Learning Objectives Apply transformations to the remaining four trigonometric functions. Identify
More informationCommon Core Standards Addressed in this Resource
Common Core Standards Addressed in this Resource N-CN.4 - Represent complex numbers on the complex plane in rectangular and polar form (including real and imaginary numbers), and explain why the rectangular
More informationA 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 informationUnit 3 Trig II. 3.1 Trig and Periodic Functions
Unit 3 Trig II AFM Mrs. Valentine Obj.: I will be able to use a unit circle to find values of sine, cosine, and tangent. I will be able to find the domain and range of sine and cosine. I will understand
More informationVariable 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 informationUse the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before.
Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy
More informationto and go find the only place where the tangent of that
Study Guide for PART II of the Spring 14 MAT187 Final Exam. NO CALCULATORS are permitted on this part of the Final Exam. This part of the Final exam will consist of 5 multiple choice questions. You will
More information9.1 Use Trigonometry with Right Triangles
9.1 Use Trigonometry with Right Triangles Use the Pythagorean Theorem to find missing lengths in right triangles. Find trigonometric ratios using right triangles. Use trigonometric ratios to find angle
More informationPre Calculus Worksheet: Fundamental Identities Day 1
Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy
More informationELEMENTARY MATLAB PROGRAMMING
1 ELEMENTARY MATLAB PROGRAMMING (Version R2013a used here so some differences may be encountered) COPYRIGHT Irving K. Robbins 1992, 1998, 2014, 2015 All rights reserved INTRODUCTION % It is assumed the
More informationIntroduction to MATLAB
Outlines January 30, 2008 Outlines Part I: Part II: Writing MATLAB Functions Starting MATLAB Exiting MATLAB Getting Help Command Window Workspace Command History Current Directory Selector Real Values
More informationVerifying Trigonometric Identities
Verifying Trigonometric Identities What you should learn Verify trigonometric identities. Why you should learn it You can use trigonometric identities to rewrite trigonometric equations that model real-life
More informationUnit 13: Periodic Functions and Trig
Date Period Unit 13: Periodic Functions and Trig Day Topic 0 Special Right Triangles and Periodic Function 1 Special Right Triangles Standard Position Coterminal Angles 2 Unit Circle Cosine & Sine (x,
More informationIntroduction to MATLAB
Outlines September 9, 2004 Outlines Part I: Review of Previous Lecture Part II: Part III: Writing MATLAB Functions Review of Previous Lecture Outlines Part I: Review of Previous Lecture Part II: Part III:
More informationEGR 111 Introduction to MATLAB
EGR 111 Introduction to MATLAB This lab introduces the MATLAB help facility, shows how MATLAB TM, which stands for MATrix LABoratory, can be used as an advanced calculator. This lab also introduces assignment
More informationMAC Module 3 Radian Measure and Circular Functions. Rev.S08
MAC 1114 Module 3 Radian Measure and Circular Functions Learning Objectives Upon completing this module, you should be able to: 1. Convert between degrees and radians. 2. Find function values for angles
More informationSec 4.1 Trigonometric Identities Basic Identities. Name: Reciprocal Identities:
Sec 4. Trigonometric Identities Basic Identities Name: Reciprocal Identities: Quotient Identities: sin csc cos sec csc sin sec cos sin tan cos cos cot sin tan cot cot tan Using the Reciprocal and Quotient
More informationIntroduction to MATLAB Programming
Introduction to MATLAB Programming Arun A. Balakrishnan Asst. Professor Dept. of AE&I, RSET Overview 1 Overview 2 Introduction 3 Getting Started 4 Basics of Programming Overview 1 Overview 2 Introduction
More informationSection 5: Introduction to Trigonometry and Graphs
Section 5: Introduction to Trigonometry and Graphs The following maps the videos in this section to the Texas Essential Knowledge and Skills for Mathematics TAC 111.42(c). 5.01 Radians and Degree Measurements
More informationTrigonometry To learn more about all our offerings Visit Knewton.com
Trigonometry 978-1-63545-099-6 To learn more about all our offerings Visit Knewton.com Source Author(s) (Text or Video) Title(s) Link (where applicable) OpenStax Jay Abramson, Arizona State University
More information1 Introduction to Matlab
1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,
More informationMATHEMATICS 105 Plane Trigonometry
Chapter I THE TRIGONOMETRIC FUNCTIONS MATHEMATICS 105 Plane Trigonometry INTRODUCTION The word trigonometry literally means triangle measurement. It is concerned with the measurement of the parts, sides,
More informationMATLAB Constants, Variables & Expression. 9/12/2015 By: Nafees Ahmed
MATLAB Constants, Variables & Expression Introduction MATLAB can be used as a powerful programming language. It do have IF, WHILE, FOR lops similar to other programming languages. It has its own vocabulary
More information(Type your answer in radians. Round to the nearest hundredth as needed.)
1. Find the exact value of the following expression within the interval (Simplify your answer. Type an exact answer, using as needed. Use integers or fractions for any numbers in the expression. Type N
More informationComputer Programming in MATLAB
Computer Programming in MATLAB Prof. Dr. İrfan KAYMAZ Atatürk University Engineering Faculty Department of Mechanical Engineering What is a computer??? Computer is a device that computes, especially a
More informationMatlab as a calculator
Why Matlab? Matlab is an interactive, high-level, user-friendly programming and visualization environment. It allows much faster programs development in comparison with the traditional low-level compiled
More informationTrigonometric ratios provide relationships between the sides and angles of a right angle triangle. The three most commonly used ratios are:
TRIGONOMETRY TRIGONOMETRIC RATIOS If one of the angles of a triangle is 90º (a right angle), the triangle is called a right angled triangle. We indicate the 90º (right) angle by placing a box in its corner.)
More informationVARIABLES Storing numbers:
VARIABLES Storing numbers: You may create and use variables in Matlab to store data. There are a few rules on naming variables though: (1) Variables must begin with a letter and can be followed with any
More informationMath-3 Lesson 6-1. Trigonometric Ratios for Right Triangles and Extending to Obtuse angles.
Math-3 Lesson 6-1 Trigonometric Ratios for Right Triangles and Extending to Obtuse angles. Right Triangle: has one angle whose measure is. 90 The short sides of the triangle are called legs. The side osite
More informationMastery. PRECALCULUS Student Learning Targets
PRECALCULUS Student Learning Targets Big Idea: Sequences and Series 1. I can describe a sequence as a function where the domain is the set of natural numbers. Connections (Pictures, Vocabulary, Definitions,
More informationAlgebra II. Slide 1 / 162. Slide 2 / 162. Slide 3 / 162. Trigonometric Functions. Trig Functions
Slide 1 / 162 Algebra II Slide 2 / 162 Trigonometric Functions 2015-12-17 www.njctl.org Trig Functions click on the topic to go to that section Slide 3 / 162 Radians & Degrees & Co-terminal angles Arc
More informationIntroduction to Matlab
Introduction to Matlab The purpose of this intro is to show some of Matlab s basic capabilities. Nir Gavish, 2.07 Contents Getting help Matlab development enviroment Variable definitions Mathematical operations
More informationA Guide to Using Some Basic MATLAB Functions
A Guide to Using Some Basic MATLAB Functions UNC Charlotte Robert W. Cox This document provides a brief overview of some of the essential MATLAB functionality. More thorough descriptions are available
More informationLesson 10.1 TRIG RATIOS AND COMPLEMENTARY ANGLES PAGE 231
1 Lesson 10.1 TRIG RATIOS AND COMPLEMENTARY ANGLES PAGE 231 What is Trigonometry? 2 It is defined as the study of triangles and the relationships between their sides and the angles between these sides.
More informationMATLAB: a Brief Introduction. by Robert L. Rankin
MATLAB: a Brief Introduction by Robert L. Rankin Spring 1996 R.1 Introduction to MATLAB MATLAB: a Brief Introduction MATLAB is an acronym for MATrix LABoratory and is a highly optimized numerical computation
More information