SlideShare a Scribd company logo
1 of 24
SIGNALS AND SYSTEMS
BY
LIM, JONATHAN G.
Getting Started with MATLAB
Arrays and Matrices
Digital Image Processing
Audio Signal Processing
BASIC MATLAB OPERATOR
Basic Arithmetic Operators
Operation Symbol
Addition +
Subtraction -
Multiplication *
Division /
Power ^
MATLAB variables are created with an assignment statement. The syntax of
variable assignment is
variable name = a value (or an expression)
For example,
>> addition = 25 + 75;
>> y = (900 / 300) + 2*5
CREATING MATLAB VARIABLES
SAMPLE EXERCISES
• Calculate the expression using the MatLab
ELEMENTARY FUNCTIONS
Example:
let a = 5 ;b = 2 ;y = 8
>> a = 5;
>>b = 2;
>>y = 8;
>>y = exp(-a)*sin(x)+10*sqrt(y);
>>y
y =
28.2904
BASIC PLOTTING
The MATLAB command to plot a graph is plot(x,y). The vectors x
= (1; 2; 3; 4; 5; 6) and y = (3; -1; 2; 4; 5; 1)
>> x = [1 2 3 4 5 6];
>> y = [3 -1 2 4 5 1];
>> plot(x,y)
PLOTTING SINE WAVE SIGNAL
>> x = 0: pi/100 : 2*pi; % 0-2π with increment of
π
100
>> y = sin(x); % starts at 0,
>> plot(x,y) % takes steps (or increments) of
π
100
,
% stops when 2¼ is reached.
ADDING INFORMATION
>>xlabel('x = 0:2pi')
>> ylabel('Sine of x')
>> title('Plot of the Sine function')
MULTIPLE DATA SETS
>> x = 0:pi/100:2*pi;
>> y1 = 2*cos(x);
>> y2 = cos(x);
>> y3 = 0.5*cos(x);
>> plot(x, y1, x, y2, x, y3)
>> xlabel(‘x: 0 - 2pi')
>> ylabel('Cosine functions')
>>
legend('2*cos(x)','cos(x)','0.5*cos(x
)')
>> title('Typical example of multiple
plots')
>> axis([0 2*pi -3 3])
0 1 2 3 4 5 6 7
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
x: 0 - 2
Cosinefunctions
2*cos(x)
cos(x)
0.5*cos(x)
>>plot(x,y1,'--',x,y2,'-',x,y3,':')
EXERCISES
Plot the following y1 = 2sin(x), y2 = cos(x) , y3 = 0.6cos(0.5x)
0 1 2 3 4 5 6 7
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
Cosinefunctions
x: 0-2
Exercise 1
2*sin(x)
cos(x)
0.6*cos(.5*x)
• x = 0:pi/100:2*pi;
• y1 = 2*sin(x);
• y2 = cos(x);
• y3 = 0.6*cos(.5*x);
• plot(x,y1,‘:',x,y2,‘:',x,y3,':')
• xlabel(‘x: 0 - 2pi')
• ylabel('Cosine functions')
• legend('2*sin(x)','cos(x)','0.6*cos(.5*x)')
• title(‘Exercise 1’)
• axis([0 2*pi -3 3])
MATRIX GENERATION
• Matrices are fundamental to MATLAB. Therefore, we need to
become familiar with matrix generation and manipulation.
Matrices can be generated in several ways.
• A vector is a special case of a matrix.
An array of dimension (1x n) is called a row vector, whereas an
array of dimension (m x1) is called a column vector.
>> row = [1 4 7 10 13] % row vector
>> column = [1;4;7;10;13] % column vector
Converting Row Vector to Column Vector or Vice Versa using Transpose. The
transpose operation is denoted by an apostrophe or a single quote (').
>> row = row’
>>column = column’
ENTERING A MATRIX
A matrix is an array of numbers. To type a matrix into MATLAB you
must
1. Begin with a square bracket, [
2. Separate elements in a row with spaces or commas (,)
3. Use a semicolon (;) to separate rows
4. End the matrix with another square bracket, ].
>> A = [1 2 3; 4 5 6; 7 8 9]A =
1 2 3
4 5 6
7 8 9
Transpose a Matrix:
>> A = [1 2 3; 4 5 6; 7 8
9]
>> A’
ans =
1 4 7
2 5 8
3 6 0
COLON OPERATOR
>>x = 1: .5: 5; %1-5 with increment of 0.5
>>x
x =
1.0000 1.5000 2.0000 2.5000 3.0000 3.5000 4.0000 4.5000
5.0000
SAMPLE EXERCISES
• Find Matrix C if C = A x B and D = AB
C =
300 360 420
660 810 960
1020 1260 1500
D =
10 40 90
160 250 360
490 640 810
SOLVING LINEAR EQUATION
Example:
Find the value of x,y
and z
Solution:
INVERSE AND DETERMINANT
Consider the matrix: find the inverse and determinants
EXERCISES
1. Solve for the value of x, the inverse and determinants. Store in
variable X, INV and DET respectively
EXERCISES
2. Liz buys three apples, a dozen bananas, and one cantaloupe
for $2.36. Bob buys a dozen apples and two cantaloupe for
$5.26. Carol buys two bananas and three cantaloupe for $2.77.
How much do single pieces of each fruit cost?

More Related Content

What's hot

Higher Maths 1.2.1 - Sets and Functions
Higher Maths 1.2.1 - Sets and FunctionsHigher Maths 1.2.1 - Sets and Functions
Higher Maths 1.2.1 - Sets and Functionstimschmitz
 
Parabola direction , vertex ,roots, minimum and maximum
Parabola direction , vertex ,roots, minimum and maximumParabola direction , vertex ,roots, minimum and maximum
Parabola direction , vertex ,roots, minimum and maximumNadeem Uddin
 
Kristhyan kurtlazartezubia evidencia1-metodosnumericos
Kristhyan kurtlazartezubia evidencia1-metodosnumericosKristhyan kurtlazartezubia evidencia1-metodosnumericos
Kristhyan kurtlazartezubia evidencia1-metodosnumericosKristhyanAndreeKurtL
 
Piecewise Functions
Piecewise FunctionsPiecewise Functions
Piecewise Functionsswartzje
 
FUNCTION- Algebraic Function
FUNCTION- Algebraic FunctionFUNCTION- Algebraic Function
FUNCTION- Algebraic FunctionJanak Singh saud
 
Function Operations
Function OperationsFunction Operations
Function Operationsswartzje
 
Math presentation on domain and range
Math presentation on domain and rangeMath presentation on domain and range
Math presentation on domain and rangeTouhidul Shawan
 
S1 3 derivadas_resueltas
S1 3 derivadas_resueltasS1 3 derivadas_resueltas
S1 3 derivadas_resueltasjesquerrev1
 
L3 functions operations
L3 functions operationsL3 functions operations
L3 functions operationsJames Tagara
 
Composicion de funciones
Composicion de funcionesComposicion de funciones
Composicion de funcionesPaito Sarauz
 
Math - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of FunctionsMath - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of FunctionsChuckie Balbuena
 
5.1 Linear Functions And Graphs
5.1 Linear Functions And Graphs5.1 Linear Functions And Graphs
5.1 Linear Functions And Graphsvmonacelli
 

What's hot (19)

Higher Maths 1.2.1 - Sets and Functions
Higher Maths 1.2.1 - Sets and FunctionsHigher Maths 1.2.1 - Sets and Functions
Higher Maths 1.2.1 - Sets and Functions
 
Gr10 piecewise functions
Gr10 piecewise functionsGr10 piecewise functions
Gr10 piecewise functions
 
L6 continuity
L6 continuityL6 continuity
L6 continuity
 
Parabola direction , vertex ,roots, minimum and maximum
Parabola direction , vertex ,roots, minimum and maximumParabola direction , vertex ,roots, minimum and maximum
Parabola direction , vertex ,roots, minimum and maximum
 
Kristhyan kurtlazartezubia evidencia1-metodosnumericos
Kristhyan kurtlazartezubia evidencia1-metodosnumericosKristhyan kurtlazartezubia evidencia1-metodosnumericos
Kristhyan kurtlazartezubia evidencia1-metodosnumericos
 
Function : Introduction
Function : IntroductionFunction : Introduction
Function : Introduction
 
Piecewise Functions
Piecewise FunctionsPiecewise Functions
Piecewise Functions
 
FUNCTION- Algebraic Function
FUNCTION- Algebraic FunctionFUNCTION- Algebraic Function
FUNCTION- Algebraic Function
 
Math academy-partial-fractions-notes
Math academy-partial-fractions-notesMath academy-partial-fractions-notes
Math academy-partial-fractions-notes
 
133467 p1a9
133467 p1a9133467 p1a9
133467 p1a9
 
Function Operations
Function OperationsFunction Operations
Function Operations
 
Math presentation on domain and range
Math presentation on domain and rangeMath presentation on domain and range
Math presentation on domain and range
 
S1 3 derivadas_resueltas
S1 3 derivadas_resueltasS1 3 derivadas_resueltas
S1 3 derivadas_resueltas
 
L3 functions operations
L3 functions operationsL3 functions operations
L3 functions operations
 
Function
FunctionFunction
Function
 
Composicion de funciones
Composicion de funcionesComposicion de funciones
Composicion de funciones
 
Math - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of FunctionsMath - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of Functions
 
properties of exponents
properties of exponentsproperties of exponents
properties of exponents
 
5.1 Linear Functions And Graphs
5.1 Linear Functions And Graphs5.1 Linear Functions And Graphs
5.1 Linear Functions And Graphs
 

Similar to SIGNALS AND SYSTEMS TOOLBOX

INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxDevaraj Chilakala
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMohd Esa
 
MATLAB-Introd.ppt
MATLAB-Introd.pptMATLAB-Introd.ppt
MATLAB-Introd.pptkebeAman
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxagnesdcarey33086
 
Notes on MATLAB - Basic Cheatsheet
Notes on MATLAB    -    Basic CheatsheetNotes on MATLAB    -    Basic Cheatsheet
Notes on MATLAB - Basic CheatsheetAhmed Nassar
 
Matlab 1
Matlab 1Matlab 1
Matlab 1asguna
 
INTRODUCTION TO MATLAB session with notes
  INTRODUCTION TO MATLAB   session with  notes  INTRODUCTION TO MATLAB   session with  notes
INTRODUCTION TO MATLAB session with notesInfinity Tech Solutions
 
Solution of matlab chapter 3
Solution of matlab chapter 3Solution of matlab chapter 3
Solution of matlab chapter 3AhsanIrshad8
 
Introduction to MatLab programming
Introduction to MatLab programmingIntroduction to MatLab programming
Introduction to MatLab programmingDamian T. Gordon
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabkrishna_093
 
Basics of Matlab for students and faculty
Basics of Matlab for students and facultyBasics of Matlab for students and faculty
Basics of Matlab for students and facultyAbhishekRanjan17318
 
More instructions for the lab write-up1) You are not obli.docx
More instructions for the lab write-up1) You are not obli.docxMore instructions for the lab write-up1) You are not obli.docx
More instructions for the lab write-up1) You are not obli.docxgilpinleeanna
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersMurshida ck
 

Similar to SIGNALS AND SYSTEMS TOOLBOX (20)

INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptx
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd Esa
 
bobok
bobokbobok
bobok
 
Matlab
MatlabMatlab
Matlab
 
MATLAB-Introd.ppt
MATLAB-Introd.pptMATLAB-Introd.ppt
MATLAB-Introd.ppt
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Matlab Tutorial
Matlab TutorialMatlab Tutorial
Matlab Tutorial
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
 
Notes on MATLAB - Basic Cheatsheet
Notes on MATLAB    -    Basic CheatsheetNotes on MATLAB    -    Basic Cheatsheet
Notes on MATLAB - Basic Cheatsheet
 
MATLAB ARRAYS
MATLAB ARRAYSMATLAB ARRAYS
MATLAB ARRAYS
 
Matlab 1
Matlab 1Matlab 1
Matlab 1
 
INTRODUCTION TO MATLAB session with notes
  INTRODUCTION TO MATLAB   session with  notes  INTRODUCTION TO MATLAB   session with  notes
INTRODUCTION TO MATLAB session with notes
 
presentation.pptx
presentation.pptxpresentation.pptx
presentation.pptx
 
Solution of matlab chapter 3
Solution of matlab chapter 3Solution of matlab chapter 3
Solution of matlab chapter 3
 
Introduction to MatLab programming
Introduction to MatLab programmingIntroduction to MatLab programming
Introduction to MatLab programming
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Mat lab
Mat labMat lab
Mat lab
 
Basics of Matlab for students and faculty
Basics of Matlab for students and facultyBasics of Matlab for students and faculty
Basics of Matlab for students and faculty
 
More instructions for the lab write-up1) You are not obli.docx
More instructions for the lab write-up1) You are not obli.docxMore instructions for the lab write-up1) You are not obli.docx
More instructions for the lab write-up1) You are not obli.docx
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginners
 

Recently uploaded

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 

Recently uploaded (20)

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 

SIGNALS AND SYSTEMS TOOLBOX

  • 1. SIGNALS AND SYSTEMS BY LIM, JONATHAN G. Getting Started with MATLAB Arrays and Matrices Digital Image Processing Audio Signal Processing
  • 2. BASIC MATLAB OPERATOR Basic Arithmetic Operators Operation Symbol Addition + Subtraction - Multiplication * Division / Power ^
  • 3. MATLAB variables are created with an assignment statement. The syntax of variable assignment is variable name = a value (or an expression) For example, >> addition = 25 + 75; >> y = (900 / 300) + 2*5 CREATING MATLAB VARIABLES
  • 4. SAMPLE EXERCISES • Calculate the expression using the MatLab
  • 5. ELEMENTARY FUNCTIONS Example: let a = 5 ;b = 2 ;y = 8 >> a = 5; >>b = 2; >>y = 8; >>y = exp(-a)*sin(x)+10*sqrt(y); >>y y = 28.2904
  • 6. BASIC PLOTTING The MATLAB command to plot a graph is plot(x,y). The vectors x = (1; 2; 3; 4; 5; 6) and y = (3; -1; 2; 4; 5; 1) >> x = [1 2 3 4 5 6]; >> y = [3 -1 2 4 5 1]; >> plot(x,y)
  • 7.
  • 8. PLOTTING SINE WAVE SIGNAL >> x = 0: pi/100 : 2*pi; % 0-2π with increment of π 100 >> y = sin(x); % starts at 0, >> plot(x,y) % takes steps (or increments) of π 100 , % stops when 2¼ is reached.
  • 9.
  • 10. ADDING INFORMATION >>xlabel('x = 0:2pi') >> ylabel('Sine of x') >> title('Plot of the Sine function')
  • 11. MULTIPLE DATA SETS >> x = 0:pi/100:2*pi; >> y1 = 2*cos(x); >> y2 = cos(x); >> y3 = 0.5*cos(x); >> plot(x, y1, x, y2, x, y3) >> xlabel(‘x: 0 - 2pi') >> ylabel('Cosine functions') >> legend('2*cos(x)','cos(x)','0.5*cos(x )') >> title('Typical example of multiple plots') >> axis([0 2*pi -3 3])
  • 12. 0 1 2 3 4 5 6 7 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 x: 0 - 2 Cosinefunctions 2*cos(x) cos(x) 0.5*cos(x) >>plot(x,y1,'--',x,y2,'-',x,y3,':')
  • 13. EXERCISES Plot the following y1 = 2sin(x), y2 = cos(x) , y3 = 0.6cos(0.5x) 0 1 2 3 4 5 6 7 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 Cosinefunctions x: 0-2 Exercise 1 2*sin(x) cos(x) 0.6*cos(.5*x)
  • 14. • x = 0:pi/100:2*pi; • y1 = 2*sin(x); • y2 = cos(x); • y3 = 0.6*cos(.5*x); • plot(x,y1,‘:',x,y2,‘:',x,y3,':') • xlabel(‘x: 0 - 2pi') • ylabel('Cosine functions') • legend('2*sin(x)','cos(x)','0.6*cos(.5*x)') • title(‘Exercise 1’) • axis([0 2*pi -3 3])
  • 15. MATRIX GENERATION • Matrices are fundamental to MATLAB. Therefore, we need to become familiar with matrix generation and manipulation. Matrices can be generated in several ways. • A vector is a special case of a matrix.
  • 16. An array of dimension (1x n) is called a row vector, whereas an array of dimension (m x1) is called a column vector. >> row = [1 4 7 10 13] % row vector >> column = [1;4;7;10;13] % column vector Converting Row Vector to Column Vector or Vice Versa using Transpose. The transpose operation is denoted by an apostrophe or a single quote ('). >> row = row’ >>column = column’
  • 17. ENTERING A MATRIX A matrix is an array of numbers. To type a matrix into MATLAB you must 1. Begin with a square bracket, [ 2. Separate elements in a row with spaces or commas (,) 3. Use a semicolon (;) to separate rows 4. End the matrix with another square bracket, ]. >> A = [1 2 3; 4 5 6; 7 8 9]A = 1 2 3 4 5 6 7 8 9
  • 18. Transpose a Matrix: >> A = [1 2 3; 4 5 6; 7 8 9] >> A’ ans = 1 4 7 2 5 8 3 6 0
  • 19. COLON OPERATOR >>x = 1: .5: 5; %1-5 with increment of 0.5 >>x x = 1.0000 1.5000 2.0000 2.5000 3.0000 3.5000 4.0000 4.5000 5.0000
  • 20. SAMPLE EXERCISES • Find Matrix C if C = A x B and D = AB C = 300 360 420 660 810 960 1020 1260 1500 D = 10 40 90 160 250 360 490 640 810
  • 21. SOLVING LINEAR EQUATION Example: Find the value of x,y and z Solution:
  • 22. INVERSE AND DETERMINANT Consider the matrix: find the inverse and determinants
  • 23. EXERCISES 1. Solve for the value of x, the inverse and determinants. Store in variable X, INV and DET respectively
  • 24. EXERCISES 2. Liz buys three apples, a dozen bananas, and one cantaloupe for $2.36. Bob buys a dozen apples and two cantaloupe for $5.26. Carol buys two bananas and three cantaloupe for $2.77. How much do single pieces of each fruit cost?