Some Useful MATLAB Functions

Slides:



Advertisements
Similar presentations
Introduction to Applications & Basic Features. What is MATLAB®? MATLAB® /Simulink® is a powerful software tool for: Performing mathematical computations.
Advertisements

Methods Java 5.1 A quick overview of methods
Building Java Programs
Return values.
Arithmetic in Pascal (2) Arithmetic Functions Perform arithmetic calculations Gives an argument to the function and it returns the result.
Evaluating Sine & Cosine and and Tangent (Section 7.4)
Pre calculus Problem of the Day Homework: p odds, odds, odds On the unit circle name all indicated angles by their first positive.
Lecture 6 MATLAB functions Basics of Built-in Functions, Help Feature, Elementary Functions (e.g., Polynomials, Trigonometric Functions), Data Analysis,
Unit 34 TRIGONOMETRIC FUNCTIONS WITH RIGHT TRIANGLES.
BIL101, Introduction to Computers and Information Systems Chapter 12 A Portable Scientific Visualization Program: GnuPlot Prepared by Metin Demiralp Istanbul.
Introduction to Matlab. Entering Commands Constants and Functions >> pi ans = >> eps ans = e-016 >> sin(pi/2) ans = 1 >> log(1000) ans =
8.3 Solving Right Triangles
EXAMPLE 1 Use an inverse tangent to find an angle measure
1 CS101 Introduction to Computing Lecture 35 Mathematical Methods (Web Development Lecture 12)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
1 TAC2000/ Protocol Engineering and Application Research Laboratory (PEARL) MATH Functions in C Language.
6.2.2 The Trigonometric Functions. The Functions Squared sin 2 (  ) = sin(  ) 2 = sin(  ) * sin(  ) sin 2 (  ≠ sin (  2 ) = sin (  *  )
Warm- Up 1. Find the sine, cosine and tangent of  A. 2. Find x. 12 x 51° A.
1 Math Expressions and Operators. 2 Some C++ Operators Precedence OperatorDescription Higher ( )Function call +Positive - Negative *Multiplication / Division.
CSC Programming for Science Lecture 7: Math Functions.
Class Work Find the exact value of cot 330
13.7 I NVERSE T RIGONOMETRIC F UNCTIONS Algebra II w/ trig.
Visual Basic I Programming
Getting Started with MATLAB (part 3) 1. Algebra, 2. Trig 3. The keyword ans 4. Clean up and suppress output: finalizing the software’s presentation 1.
Introduction As programmers, we don’t want to have to implement functions for every possible task we encounter. The Standard C library contains functions.
Warm up. Review for chapter test Chapter 4 Understanding Trigonometric Functions Language Objectives: We will learn more about trigonometric functions.
Topic Review for Exam 1 0.Infrastructure: You must be able to use MATLAB, Blackboard Exams, and Blackboard submissions 1. Computer Developing algorithms.
Let’s Learn 3. Modules Saenthong School, January – February 2016
MATLAB Constants, Variables & Expression Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
Matlab Tutorial Iman Moazzen First Session – September 11, 2013.
Header File cmath(math.h) C++. cmath Header File cmath / math functions Function name and parameters Parameters typeFunction return value acos(x)x is.
Section 7.2 Addition and Subtraction Formulas Objectives: To understand how to apply the addition and subtraction formulas.
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
8-3 Trigonometry Part 2: Inverse Trigonometric Functions.
Reviewing Trigonometry Angle Measure Quadrant Express as a function of a positive acute angle Evaluate Find the angle Mixed Problems.
EXAMPLE 1 Use an inverse tangent to find an angle measure Use a calculator to approximate the measure of A to the nearest tenth of a degree. SOLUTION Because.
CSE 110: Programming Language I Afroza Sultana UB 1230.
Numeric Functions Purpose:-
sin x is an odd, periodic function with 2 as the least period
MATLAB® An Introduction.
Section 4.2 The Unit Circle.
Introduction to the Six Trigonometric Functions & the Unit Circle
ECE 1304 Introduction to Electrical and Computer Engineering
Matlab Introduction.
Trigonometric Functions: The Unit Circle Section 4.2
Warm Up Use the following triangles: Find a if b = 10√2
Pre-Calc: 4.2: Trig functions: The unit circle
MATH 1330 Section 6.1.
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
2.1 – Trigonometric Functions of Acute Angles
Sum and Difference Identities
Evaluating Trigonometric Functions
Introduction to MATLAB
Trigonometric Equations with Multiple Angles
آموزش مقدماتی نرم افزار MATLAB
Right Triangle Ratios Chapter 6.
Introduction to MATLAB
Right Triangle Ratios Chapter 6.
Law of Sines and Cosines
Warm – up Find the sine, cosine and tangent of angle c.
Trigonometric Functions: The Unit Circle
Terminal-Based Programs
Trigonometric Functions: Unit Circle Approach
Precalculus Essentials
Standard MM2G2. Students will define and apply sine, cosine, and tangent ratios to right triangles.
WArmup Rewrite 240° in radians..
Trigonometry for Angle
Academy Algebra II THE UNIT CIRCLE.
What is the radian equivalent?
Presentation transcript:

Some Useful MATLAB Functions

Some MATLAB® Math Functions cosine cos or cosd square root sqrt sine sin or sind exponential exp tangent tan or tand logarithm (base 10) log10 cotangent cot or cotd natural log (base e) log arc cosine acos or acosd round to nearest integer round arc sine asin or asind round down to integer floor arc tangent atan or atand round up to integer ceil arc cotangent acot or acotd Note: cos(α) assumes α in radians; whereas, cosd(α) assumes α in degrees. acos(x) returns the angle in radians; whereas, acosd(x) returns the angle in degrees. π radians = 180 degrees

Other Useful Stuff clear clears all variables in the MATLAB® workspace clear a, b just clears variables a and b clc clears the command window i and j are defined in MATLAB to be −𝟏 . If you define these variables to be something else, you lose the ability to work with complex numbers. So, avoid using i and j as variables. pi is defined in MATLAB as 3.14159….

Help! The help command provides information about a function. Type help cos at the command prompt. This only works if you know the name of the function you want help with. You can also click on Help in the MATLAB toolbar and search for information by keyword(s).