Technical Computing
Qasim Habib
Today’s Content 1. Polynomial Operations 2. Built-in MATLAB Functions 3. Expressing Function Arguments 4. User-Defined Functions 5. Local & Global Variables
2
Polynomial Multiplication & Division
3
Examples
4
Polynomial Roots
5
Polynomial Coefficients
6
Plotting Polynomials
7
8
Some common Mathematical functions
9
Expressing Function Arguments
10
11
Radians & Degrees
12
Trigonometric and inverse trigonometric functions
13
User-Defined Functions
14
Example
15
Calling function “fun”
16
17
18
Multiple outputs
19
Examples of Function Definition Lines
20
Local Variables
21
Global Variables
22
Task #10 • Solve – Example 3.2-1 – Question 9 (Pg178) – Question 10 (Pg178) – Question 11 (Pg178) – Question 14 (Pg179)
23
Reference This lecture is from pg 107-112 & 141-155 of your main MATLAB book
INTRODUCTION TO MATLAB 7 FOR ENGINEERS by WILLIAM J. PALM III
24