Technical Computing 6

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 24

Technical Computing

Qasim Habib
Today’s Content
1.
1.Polynomial
PolynomialOperations
Operations

2.
2.Built-in
Built-inMATLAB
MATLABFunctions
Functions

3.
3.Expressing
ExpressingFunction
FunctionArguments
Arguments

4.
4.User-Defined
User-DefinedFunctions
Functions

5.
5.Local
Local&&Global
GlobalVariables
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

You might also like