SlideShare a Scribd company logo
1 of 7
MATLAB
Developed by
Pranoti R. Doke
Date:
1
Chapter 6
(Matrices)
Matrices:
2
>>> A=[1 2 3;4 5 6;7 8 9]
A =
1 2 3
4 5 6
7 8 9
>>>










987
654
321
Generation of matrices :
Columns separated by space or a comma Rows separated by semi-colon
Matrices :
3
1. Concatenation:
b = [a 10*a ; -a [1 0 0 ; 0 1 0 ; 0 0 1]]
b =
1 2 3 10 20 3 0
4 5 6 40 50 60
7 8 9 70 80 90
-1 -2 -3 1 0 0
-4 -5 -6 0 1 0
-7 -8 -9 0 0 1
2. Replicate :
>> a = [1 2 ; 3 4]
a =
1 2
3 4
>> repmat(a,2,3)
ans =
1 2 1 2 1 2
3 4 3 4 3 4
1 2 1 2 1 2
3 4 3 4 3 4
Matrices :
4
Arithmatic operations in MATLAB :
>>A= [1 2 3 ; 4 5 6 ; 7 8 9]
A =
1 2 3
4 5 6
7 8 9
>> B= [1 1 1 ; 2 2 2 ; 3 3 3]
B =
1 1 1
2 2 2
3 3 3
A*B
A.*B




















333
222
111
987
654
321










3x93x83x7
2x62x52x4
1x31x21x1










272421
12108
321
=
=










505050
323232
141414
1/8 …
5
A.^ B










729512343
362516
321
=










333
222
111
987
654
321
A ^ B
Error using ==> ^
Either A or B must be scalar
2/8…
6
> > a [ a(a)]
ans =
1 2 3 1 4 7
4 5 6 2 5 8
7 8 9 3 6 9
> a = [ [ 1 2 3 ] ’ [ 4 5 6 ] ’]
= 1 4
2 5
3 6
Deleting a row from matrix:
> > a(: , 2 ) = [ ]
a =
1 3
4 6
7 9
Examples to solve :
7
Q). Given Matrix is ,
A=[ 1 5 9 10; 13 15 2 5 ; 4 8 6 9 ] find out its
i. Replication of A
ii. Concatenation for [ A 5*A ; A/2 A+2 ]
iii. Transpose of A
Q). Solve for
A=[ 2 3 6 ; 4 6 9 ; 8 4 10 ; 1 5 11 ]
Caculate all arithmatic operations in MATLAB for above matrix .
Q). Determine the value of the expression a(b + c(c + d))a, where
a = 2, b = 3, c = −4 and d = −3.

More Related Content

What's hot

Core 3 assignement 5 10 11 (trigonometry 2 and differentiation 1)
Core 3 assignement 5 10 11 (trigonometry 2 and differentiation 1)Core 3 assignement 5 10 11 (trigonometry 2 and differentiation 1)
Core 3 assignement 5 10 11 (trigonometry 2 and differentiation 1)Sonia Naqvi
 
Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)Pramit Kumar
 
January 9, 2015 intro to functions
January 9, 2015 intro to functionsJanuary 9, 2015 intro to functions
January 9, 2015 intro to functionskhyps13
 
Stressen's matrix multiplication
Stressen's matrix multiplicationStressen's matrix multiplication
Stressen's matrix multiplicationKumar
 
Fibonacci fast doubling : ARM assembly 實作
Fibonacci fast doubling : ARM assembly 實作Fibonacci fast doubling : ARM assembly 實作
Fibonacci fast doubling : ARM assembly 實作哲綱 吳
 
Operation of multiplications of algebraic forms
Operation  of multiplications of algebraic formsOperation  of multiplications of algebraic forms
Operation of multiplications of algebraic formsSMP N 2 Sindang Indramayu
 
K-means Clustering || Data Mining
K-means Clustering || Data MiningK-means Clustering || Data Mining
K-means Clustering || Data MiningIffat Firozy
 
Logarithm Bases IA
Logarithm Bases IALogarithm Bases IA
Logarithm Bases IAbank8787
 
Math unit36 contructions and enlargements
Math unit36 contructions and enlargementsMath unit36 contructions and enlargements
Math unit36 contructions and enlargementseLearningJa
 
Operation of multiplications of algebraic forms
Operation  of multiplications of algebraic formsOperation  of multiplications of algebraic forms
Operation of multiplications of algebraic formsSMP N 2 Sindang Indramayu
 
Definite Integrals 8/ Integration by Parts
Definite Integrals 8/ Integration by PartsDefinite Integrals 8/ Integration by Parts
Definite Integrals 8/ Integration by PartsLakshmikanta Satapathy
 

What's hot (18)

Modeling quadratic fxns
Modeling quadratic fxnsModeling quadratic fxns
Modeling quadratic fxns
 
Core 3 assignement 5 10 11 (trigonometry 2 and differentiation 1)
Core 3 assignement 5 10 11 (trigonometry 2 and differentiation 1)Core 3 assignement 5 10 11 (trigonometry 2 and differentiation 1)
Core 3 assignement 5 10 11 (trigonometry 2 and differentiation 1)
 
AP Calculus 1984 FRQs
AP Calculus 1984 FRQsAP Calculus 1984 FRQs
AP Calculus 1984 FRQs
 
Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)
 
January 9, 2015 intro to functions
January 9, 2015 intro to functionsJanuary 9, 2015 intro to functions
January 9, 2015 intro to functions
 
Doc 20180130-wa0004
Doc 20180130-wa0004Doc 20180130-wa0004
Doc 20180130-wa0004
 
Alg2 lesson 2-6
Alg2 lesson 2-6Alg2 lesson 2-6
Alg2 lesson 2-6
 
Stressen's matrix multiplication
Stressen's matrix multiplicationStressen's matrix multiplication
Stressen's matrix multiplication
 
Fibonacci fast doubling : ARM assembly 實作
Fibonacci fast doubling : ARM assembly 實作Fibonacci fast doubling : ARM assembly 實作
Fibonacci fast doubling : ARM assembly 實作
 
Operation of multiplications of algebraic forms
Operation  of multiplications of algebraic formsOperation  of multiplications of algebraic forms
Operation of multiplications of algebraic forms
 
K-means Clustering || Data Mining
K-means Clustering || Data MiningK-means Clustering || Data Mining
K-means Clustering || Data Mining
 
Logarithm Bases IA
Logarithm Bases IALogarithm Bases IA
Logarithm Bases IA
 
Math unit36 contructions and enlargements
Math unit36 contructions and enlargementsMath unit36 contructions and enlargements
Math unit36 contructions and enlargements
 
Chapter 6 indices
Chapter 6 indicesChapter 6 indices
Chapter 6 indices
 
Alg2 lesson 7-7
Alg2 lesson 7-7Alg2 lesson 7-7
Alg2 lesson 7-7
 
Alg2 lesson 7.7
Alg2 lesson 7.7Alg2 lesson 7.7
Alg2 lesson 7.7
 
Operation of multiplications of algebraic forms
Operation  of multiplications of algebraic formsOperation  of multiplications of algebraic forms
Operation of multiplications of algebraic forms
 
Definite Integrals 8/ Integration by Parts
Definite Integrals 8/ Integration by PartsDefinite Integrals 8/ Integration by Parts
Definite Integrals 8/ Integration by Parts
 

Similar to Chapter 6 Matrices in MATLAB

Notes on MATLAB - Basic Cheatsheet
Notes on MATLAB    -    Basic CheatsheetNotes on MATLAB    -    Basic Cheatsheet
Notes on MATLAB - Basic CheatsheetAhmed Nassar
 
Counting Sort and Radix Sort Algorithms
Counting Sort and Radix Sort AlgorithmsCounting Sort and Radix Sort Algorithms
Counting Sort and Radix Sort AlgorithmsSarvesh Rawat
 
A practical work of matlab
A practical work of matlabA practical work of matlab
A practical work of matlabSalanSD
 
Matlab matrices and arrays
Matlab matrices and arraysMatlab matrices and arrays
Matlab matrices and arraysAmeen San
 
Sesión de aprendizaje de Radicación Algebra pre u ccesa007
Sesión de aprendizaje de Radicación  Algebra pre u  ccesa007Sesión de aprendizaje de Radicación  Algebra pre u  ccesa007
Sesión de aprendizaje de Radicación Algebra pre u ccesa007Demetrio Ccesa Rayme
 
2.Exploration with CAS-I.Lab2.pptx
2.Exploration with CAS-I.Lab2.pptx2.Exploration with CAS-I.Lab2.pptx
2.Exploration with CAS-I.Lab2.pptxakshatraj875
 
Gate mathematics chapter wise all gate questions of all branch
Gate mathematics chapter wise all gate questions of all branchGate mathematics chapter wise all gate questions of all branch
Gate mathematics chapter wise all gate questions of all branchdataniyaarunkumar
 
Exams in college algebra
Exams in college algebraExams in college algebra
Exams in college algebraRaymond Garcia
 
pot fracciones log etc.pdf
pot fracciones log etc.pdfpot fracciones log etc.pdf
pot fracciones log etc.pdfadelaleston
 

Similar to Chapter 6 Matrices in MATLAB (20)

Matlab
MatlabMatlab
Matlab
 
Notes on MATLAB - Basic Cheatsheet
Notes on MATLAB    -    Basic CheatsheetNotes on MATLAB    -    Basic Cheatsheet
Notes on MATLAB - Basic Cheatsheet
 
Counting Sort and Radix Sort Algorithms
Counting Sort and Radix Sort AlgorithmsCounting Sort and Radix Sort Algorithms
Counting Sort and Radix Sort Algorithms
 
MATLAB ARRAYS
MATLAB ARRAYSMATLAB ARRAYS
MATLAB ARRAYS
 
Mat lab day 1
Mat lab day 1Mat lab day 1
Mat lab day 1
 
Matlab quick quide3.4
Matlab  quick quide3.4Matlab  quick quide3.4
Matlab quick quide3.4
 
A practical work of matlab
A practical work of matlabA practical work of matlab
A practical work of matlab
 
Matlab matrices and arrays
Matlab matrices and arraysMatlab matrices and arrays
Matlab matrices and arrays
 
Matlab-1.pptx
Matlab-1.pptxMatlab-1.pptx
Matlab-1.pptx
 
Matlab
MatlabMatlab
Matlab
 
Sesión de aprendizaje de Radicación Algebra pre u ccesa007
Sesión de aprendizaje de Radicación  Algebra pre u  ccesa007Sesión de aprendizaje de Radicación  Algebra pre u  ccesa007
Sesión de aprendizaje de Radicación Algebra pre u ccesa007
 
Basic concepts in_matlab
Basic concepts in_matlabBasic concepts in_matlab
Basic concepts in_matlab
 
5431305022
54313050225431305022
5431305022
 
2.Exploration with CAS-I.Lab2.pptx
2.Exploration with CAS-I.Lab2.pptx2.Exploration with CAS-I.Lab2.pptx
2.Exploration with CAS-I.Lab2.pptx
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Indices
IndicesIndices
Indices
 
Gate mathematics chapter wise all gate questions of all branch
Gate mathematics chapter wise all gate questions of all branchGate mathematics chapter wise all gate questions of all branch
Gate mathematics chapter wise all gate questions of all branch
 
Exams in college algebra
Exams in college algebraExams in college algebra
Exams in college algebra
 
Latihan 3.3
Latihan 3.3Latihan 3.3
Latihan 3.3
 
pot fracciones log etc.pdf
pot fracciones log etc.pdfpot fracciones log etc.pdf
pot fracciones log etc.pdf
 

More from Pranoti Doke

Unit 3 cnd physical layer_switching_pranoti doke
Unit 3  cnd physical layer_switching_pranoti dokeUnit 3  cnd physical layer_switching_pranoti doke
Unit 3 cnd physical layer_switching_pranoti dokePranoti Doke
 
Unit 3 CND physical layer_switching_pranoti doke
Unit 3  CND physical layer_switching_pranoti dokeUnit 3  CND physical layer_switching_pranoti doke
Unit 3 CND physical layer_switching_pranoti dokePranoti Doke
 
Unit 3 CND_Physical Layer_Multiplexing_Pranoti Doke
Unit 3  CND_Physical Layer_Multiplexing_Pranoti DokeUnit 3  CND_Physical Layer_Multiplexing_Pranoti Doke
Unit 3 CND_Physical Layer_Multiplexing_Pranoti DokePranoti Doke
 
Unit 3_CND Physical Layer_MODEMS_Pranoti Doke
Unit 3_CND Physical Layer_MODEMS_Pranoti DokeUnit 3_CND Physical Layer_MODEMS_Pranoti Doke
Unit 3_CND Physical Layer_MODEMS_Pranoti DokePranoti Doke
 
Unit 3 _CND_22634_ physical layer_transmission medium_pranoti doke
Unit 3 _CND_22634_ physical layer_transmission medium_pranoti dokeUnit 3 _CND_22634_ physical layer_transmission medium_pranoti doke
Unit 3 _CND_22634_ physical layer_transmission medium_pranoti dokePranoti Doke
 
Programmable Logic Controller by Pranoti R. Doke
Programmable Logic Controller by Pranoti R. DokeProgrammable Logic Controller by Pranoti R. Doke
Programmable Logic Controller by Pranoti R. DokePranoti Doke
 
C programming Ms. Pranoti Doke
C programming Ms. Pranoti DokeC programming Ms. Pranoti Doke
C programming Ms. Pranoti DokePranoti Doke
 
C programming_MSBTE_Diploma_Pranoti Doke
C programming_MSBTE_Diploma_Pranoti DokeC programming_MSBTE_Diploma_Pranoti Doke
C programming_MSBTE_Diploma_Pranoti DokePranoti Doke
 
Unit 2 cnd_22634_pranoti doke
Unit 2 cnd_22634_pranoti dokeUnit 2 cnd_22634_pranoti doke
Unit 2 cnd_22634_pranoti dokePranoti Doke
 
CND_22634_UNIT1_MSBTE_Computer network and Data Communication
CND_22634_UNIT1_MSBTE_Computer network and Data CommunicationCND_22634_UNIT1_MSBTE_Computer network and Data Communication
CND_22634_UNIT1_MSBTE_Computer network and Data CommunicationPranoti Doke
 
Chapter 10 Programming in Matlab
Chapter 10 Programming in MatlabChapter 10 Programming in Matlab
Chapter 10 Programming in MatlabPranoti Doke
 
Chapter 9 Display Commands in MATLAB
Chapter 9 Display Commands in MATLABChapter 9 Display Commands in MATLAB
Chapter 9 Display Commands in MATLABPranoti Doke
 
Chapter 8 Data Types in MATLAB
Chapter 8 Data Types in MATLABChapter 8 Data Types in MATLAB
Chapter 8 Data Types in MATLABPranoti Doke
 
Chapter 7 Formats in MATLAB
Chapter 7 Formats in MATLABChapter 7 Formats in MATLAB
Chapter 7 Formats in MATLABPranoti Doke
 
Chapter 5 Useful Matrices Generators
Chapter 5 Useful Matrices GeneratorsChapter 5 Useful Matrices Generators
Chapter 5 Useful Matrices GeneratorsPranoti Doke
 
Chapter 4 Keyboard in MATLAB Shortcuts
Chapter 4 Keyboard in MATLAB ShortcutsChapter 4 Keyboard in MATLAB Shortcuts
Chapter 4 Keyboard in MATLAB ShortcutsPranoti Doke
 
Chapter 3 Commands at MATLAB Command Window
Chapter 3 Commands at MATLAB Command WindowChapter 3 Commands at MATLAB Command Window
Chapter 3 Commands at MATLAB Command WindowPranoti Doke
 
Chapter 2 Basics of MATLAB
Chapter 2 Basics of MATLABChapter 2 Basics of MATLAB
Chapter 2 Basics of MATLABPranoti Doke
 
Chapter 1 matlab demo
Chapter 1 matlab demoChapter 1 matlab demo
Chapter 1 matlab demoPranoti Doke
 

More from Pranoti Doke (19)

Unit 3 cnd physical layer_switching_pranoti doke
Unit 3  cnd physical layer_switching_pranoti dokeUnit 3  cnd physical layer_switching_pranoti doke
Unit 3 cnd physical layer_switching_pranoti doke
 
Unit 3 CND physical layer_switching_pranoti doke
Unit 3  CND physical layer_switching_pranoti dokeUnit 3  CND physical layer_switching_pranoti doke
Unit 3 CND physical layer_switching_pranoti doke
 
Unit 3 CND_Physical Layer_Multiplexing_Pranoti Doke
Unit 3  CND_Physical Layer_Multiplexing_Pranoti DokeUnit 3  CND_Physical Layer_Multiplexing_Pranoti Doke
Unit 3 CND_Physical Layer_Multiplexing_Pranoti Doke
 
Unit 3_CND Physical Layer_MODEMS_Pranoti Doke
Unit 3_CND Physical Layer_MODEMS_Pranoti DokeUnit 3_CND Physical Layer_MODEMS_Pranoti Doke
Unit 3_CND Physical Layer_MODEMS_Pranoti Doke
 
Unit 3 _CND_22634_ physical layer_transmission medium_pranoti doke
Unit 3 _CND_22634_ physical layer_transmission medium_pranoti dokeUnit 3 _CND_22634_ physical layer_transmission medium_pranoti doke
Unit 3 _CND_22634_ physical layer_transmission medium_pranoti doke
 
Programmable Logic Controller by Pranoti R. Doke
Programmable Logic Controller by Pranoti R. DokeProgrammable Logic Controller by Pranoti R. Doke
Programmable Logic Controller by Pranoti R. Doke
 
C programming Ms. Pranoti Doke
C programming Ms. Pranoti DokeC programming Ms. Pranoti Doke
C programming Ms. Pranoti Doke
 
C programming_MSBTE_Diploma_Pranoti Doke
C programming_MSBTE_Diploma_Pranoti DokeC programming_MSBTE_Diploma_Pranoti Doke
C programming_MSBTE_Diploma_Pranoti Doke
 
Unit 2 cnd_22634_pranoti doke
Unit 2 cnd_22634_pranoti dokeUnit 2 cnd_22634_pranoti doke
Unit 2 cnd_22634_pranoti doke
 
CND_22634_UNIT1_MSBTE_Computer network and Data Communication
CND_22634_UNIT1_MSBTE_Computer network and Data CommunicationCND_22634_UNIT1_MSBTE_Computer network and Data Communication
CND_22634_UNIT1_MSBTE_Computer network and Data Communication
 
Chapter 10 Programming in Matlab
Chapter 10 Programming in MatlabChapter 10 Programming in Matlab
Chapter 10 Programming in Matlab
 
Chapter 9 Display Commands in MATLAB
Chapter 9 Display Commands in MATLABChapter 9 Display Commands in MATLAB
Chapter 9 Display Commands in MATLAB
 
Chapter 8 Data Types in MATLAB
Chapter 8 Data Types in MATLABChapter 8 Data Types in MATLAB
Chapter 8 Data Types in MATLAB
 
Chapter 7 Formats in MATLAB
Chapter 7 Formats in MATLABChapter 7 Formats in MATLAB
Chapter 7 Formats in MATLAB
 
Chapter 5 Useful Matrices Generators
Chapter 5 Useful Matrices GeneratorsChapter 5 Useful Matrices Generators
Chapter 5 Useful Matrices Generators
 
Chapter 4 Keyboard in MATLAB Shortcuts
Chapter 4 Keyboard in MATLAB ShortcutsChapter 4 Keyboard in MATLAB Shortcuts
Chapter 4 Keyboard in MATLAB Shortcuts
 
Chapter 3 Commands at MATLAB Command Window
Chapter 3 Commands at MATLAB Command WindowChapter 3 Commands at MATLAB Command Window
Chapter 3 Commands at MATLAB Command Window
 
Chapter 2 Basics of MATLAB
Chapter 2 Basics of MATLABChapter 2 Basics of MATLAB
Chapter 2 Basics of MATLAB
 
Chapter 1 matlab demo
Chapter 1 matlab demoChapter 1 matlab demo
Chapter 1 matlab demo
 

Recently uploaded

IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
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
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
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
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
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
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
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)
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
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
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
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
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
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
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

Chapter 6 Matrices in MATLAB

  • 1. MATLAB Developed by Pranoti R. Doke Date: 1 Chapter 6 (Matrices)
  • 2. Matrices: 2 >>> A=[1 2 3;4 5 6;7 8 9] A = 1 2 3 4 5 6 7 8 9 >>>           987 654 321 Generation of matrices : Columns separated by space or a comma Rows separated by semi-colon
  • 3. Matrices : 3 1. Concatenation: b = [a 10*a ; -a [1 0 0 ; 0 1 0 ; 0 0 1]] b = 1 2 3 10 20 3 0 4 5 6 40 50 60 7 8 9 70 80 90 -1 -2 -3 1 0 0 -4 -5 -6 0 1 0 -7 -8 -9 0 0 1 2. Replicate : >> a = [1 2 ; 3 4] a = 1 2 3 4 >> repmat(a,2,3) ans = 1 2 1 2 1 2 3 4 3 4 3 4 1 2 1 2 1 2 3 4 3 4 3 4
  • 4. Matrices : 4 Arithmatic operations in MATLAB : >>A= [1 2 3 ; 4 5 6 ; 7 8 9] A = 1 2 3 4 5 6 7 8 9 >> B= [1 1 1 ; 2 2 2 ; 3 3 3] B = 1 1 1 2 2 2 3 3 3 A*B A.*B                     333 222 111 987 654 321           3x93x83x7 2x62x52x4 1x31x21x1           272421 12108 321 = =           505050 323232 141414
  • 6. 2/8… 6 > > a [ a(a)] ans = 1 2 3 1 4 7 4 5 6 2 5 8 7 8 9 3 6 9 > a = [ [ 1 2 3 ] ’ [ 4 5 6 ] ’] = 1 4 2 5 3 6 Deleting a row from matrix: > > a(: , 2 ) = [ ] a = 1 3 4 6 7 9
  • 7. Examples to solve : 7 Q). Given Matrix is , A=[ 1 5 9 10; 13 15 2 5 ; 4 8 6 9 ] find out its i. Replication of A ii. Concatenation for [ A 5*A ; A/2 A+2 ] iii. Transpose of A Q). Solve for A=[ 2 3 6 ; 4 6 9 ; 8 4 10 ; 1 5 11 ] Caculate all arithmatic operations in MATLAB for above matrix . Q). Determine the value of the expression a(b + c(c + d))a, where a = 2, b = 3, c = −4 and d = −3.