Views
3 years ago

# Functions and Files - The University of Jordan

Functions and Files - The University of Jordan

## Functions and Files - The University of

Lecture 5 Computer Applications 0933201 Chapter 3 Z.R.K UNIVERSITY OF JORDAN Faculty of Eng. and Tech. Electrical Engineering Dept. Instructor: Ziad R. Al-Khatib Introduction to MATLAB 7 for Engineers William J. Palm III Chapter 3 Functions and Files Z.R.K 3-2 Getting Help for Functions You can use the lookfor command to find functions that are relevant to your application. For example, type lookfor imaginary to get a list of the functions that deal with imaginary numbers. You will see listed: imag Complex imaginary part i Imaginary unit j Imaginary unit Some common mathematical functions: Table 3.1–1 Exponential exp(x) Exponential; e x sqrt(x) Square root; x Logarithmic log(x) log10(x) Z.R.K More See page 142. Natural logarithm; ln x Common (base 10) logarithm; log x = log 10 x. (continued…) Some common mathematical functions (continued) Complex abs(x) angle(x) conj(x) imag(x) real(x) Numeric ceil(x) fix(x) floor(x) round(x) sign(x) Absolute value. Angle of a complex number. Complex conjugate. Imaginary part of a complex number. Real part of a complex number. Round to nearest integer toward . Round to nearest integer toward zero. Round to nearest integer toward -. Round toward nearest integer. Signum function: The rectangular and polar representations of the complex number. Rectangular form: M = a + ib. or M = a + jb. Polar form: M = |M|. Figure 3.1–1 3-3 +1 if x >0; 0 Z.R.K if x = 0; -1 if x >x = -3 + 4i; >>y = 6 - 8i; >>mag_x = abs(x) mag_x = 5.0000 >>mag_y = abs(y) mag_y = 10.0000 >>mag_product = abs(x*y) mag_product = 50.0000 Z.R.K. Z.R.K (continued …) Operations with Complex Numbers (continued) >>angle_x = angle(x) angle_x = 2.2143 >>angle_y = angle(y) angle_y = -0.9273 >>sum_angles = angle_x + angle_y sum_angles = 1.2870 >>angle_product = angle(x*y) angle_product = 1.2870 Note: The MATLAB trigonometric functions operate in radian mode. Thus sin(5) computes the sine of 5 rad, not the sine of 5°. To convert between degrees and radians, use the relation: q radians = (pi/180)q degrees . Note: sum_angles = angle_product Z.R.K 3-6 More See pages 143-145. 2008 Page 1 of 9

Chapter 3 - FET
Functionality and Performance Evaluation of File ... - PTP, LLC
Viva of Jordan - New York University
The Structure and Evolution of Employment in Jordan - University of ...
LOUISE JORDAN MJLN - University of Oregon
Introduction to MATLAB 7 for Engineers - The University of Jordan
View PDF File - UT Extension - The University of Tennessee
2006 Scheme and Functional Programming Papers, University of
Visuospatial Function
Patterns, Relations & functions - Oak - Northern Arizona University
An Overview of Functional Genomic Data - Harvard University ...
Presentation File
Functions II - the Australian Mathematical Sciences Institute
to get the file - Osaka University
Gleanings - to files - University of Minnesota
PDF file - University of Toronto
Function Centre - Australian University Sport
Impact of Ventricular Function and Morphology, Valve
Application Manual 2013 - Functional Devices, Inc.
Judgments of Functional Relationships in Systems of Three Variables