SlideShare a Scribd company logo
1 of 1
Download to read offline
Write a MATLAB program that finds the maximum element in a matrix. You program should
first ask users to enter the matrix.
Solution
%finding the maximum value element in matrix
fprintf('enter the matrix B')
A=input('enter the matrix A')
q=max(max(A));%maximum element in matrix
fprintf('maximum element matrix is :')
disp(q)

More Related Content

More from suresh640714

Could please answer those questions about North country movieHere.pdf
Could please answer those questions about North country movieHere.pdfCould please answer those questions about North country movieHere.pdf
Could please answer those questions about North country movieHere.pdf
suresh640714
 
Answer using basic programming beginner knowledge pls...........Othe.pdf
Answer using basic programming beginner knowledge pls...........Othe.pdfAnswer using basic programming beginner knowledge pls...........Othe.pdf
Answer using basic programming beginner knowledge pls...........Othe.pdf
suresh640714
 
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdfA 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
suresh640714
 
2. If you have a nonlinear relationship between an independent varia.pdf
2. If you have a nonlinear relationship between an independent varia.pdf2. If you have a nonlinear relationship between an independent varia.pdf
2. If you have a nonlinear relationship between an independent varia.pdf
suresh640714
 
Why are income statements and statement of cash flows dated similarl.pdf
Why are income statements and statement of cash flows dated similarl.pdfWhy are income statements and statement of cash flows dated similarl.pdf
Why are income statements and statement of cash flows dated similarl.pdf
suresh640714
 
Write a computer program as a Win32 console application in C to proc.pdf
Write a computer program as a Win32 console application in C to proc.pdfWrite a computer program as a Win32 console application in C to proc.pdf
Write a computer program as a Win32 console application in C to proc.pdf
suresh640714
 
What values were affected by simulate airway obstruction, and why Ex.pdf
What values were affected by simulate airway obstruction, and why Ex.pdfWhat values were affected by simulate airway obstruction, and why Ex.pdf
What values were affected by simulate airway obstruction, and why Ex.pdf
suresh640714
 

More from suresh640714 (20)

Could please answer those questions about North country movieHere.pdf
Could please answer those questions about North country movieHere.pdfCould please answer those questions about North country movieHere.pdf
Could please answer those questions about North country movieHere.pdf
 
Consider the equation 1 - 2x = sin x. Use the Intermediate Value The.pdf
Consider the equation 1 - 2x = sin x.  Use the Intermediate Value The.pdfConsider the equation 1 - 2x = sin x.  Use the Intermediate Value The.pdf
Consider the equation 1 - 2x = sin x. Use the Intermediate Value The.pdf
 
CommunicationsEvery organization has its own unique “organization.pdf
CommunicationsEvery organization has its own unique “organization.pdfCommunicationsEvery organization has its own unique “organization.pdf
CommunicationsEvery organization has its own unique “organization.pdf
 
choose the word that BEST fits each statement.A. stomachB. Esoph.pdf
choose the word that BEST fits each statement.A. stomachB. Esoph.pdfchoose the word that BEST fits each statement.A. stomachB. Esoph.pdf
choose the word that BEST fits each statement.A. stomachB. Esoph.pdf
 
Based on your new understanding of Master Data Management and how or.pdf
Based on your new understanding of Master Data Management and how or.pdfBased on your new understanding of Master Data Management and how or.pdf
Based on your new understanding of Master Data Management and how or.pdf
 
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdfB Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
 
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdfarMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
 
Answer using basic programming beginner knowledge pls...........Othe.pdf
Answer using basic programming beginner knowledge pls...........Othe.pdfAnswer using basic programming beginner knowledge pls...........Othe.pdf
Answer using basic programming beginner knowledge pls...........Othe.pdf
 
Andy and Ben are going to play a final round of game 5 to determine .pdf
Andy and Ben are going to play a final round of game 5 to determine .pdfAndy and Ben are going to play a final round of game 5 to determine .pdf
Andy and Ben are going to play a final round of game 5 to determine .pdf
 
A die is rolled repeatedly until two consecutive rolls have the same .pdf
A die is rolled repeatedly until two consecutive rolls have the same .pdfA die is rolled repeatedly until two consecutive rolls have the same .pdf
A die is rolled repeatedly until two consecutive rolls have the same .pdf
 
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdfA 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
 
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
 
2. If you have a nonlinear relationship between an independent varia.pdf
2. If you have a nonlinear relationship between an independent varia.pdf2. If you have a nonlinear relationship between an independent varia.pdf
2. If you have a nonlinear relationship between an independent varia.pdf
 
Write a Prolog function countAllX which counts the number of occurre.pdf
Write a Prolog function countAllX which counts the number of occurre.pdfWrite a Prolog function countAllX which counts the number of occurre.pdf
Write a Prolog function countAllX which counts the number of occurre.pdf
 
why is cell membrane semipermeableSolutioncell membrane needs .pdf
why is cell membrane semipermeableSolutioncell membrane needs .pdfwhy is cell membrane semipermeableSolutioncell membrane needs .pdf
why is cell membrane semipermeableSolutioncell membrane needs .pdf
 
Why are income statements and statement of cash flows dated similarl.pdf
Why are income statements and statement of cash flows dated similarl.pdfWhy are income statements and statement of cash flows dated similarl.pdf
Why are income statements and statement of cash flows dated similarl.pdf
 
Write a computer program as a Win32 console application in C to proc.pdf
Write a computer program as a Win32 console application in C to proc.pdfWrite a computer program as a Win32 console application in C to proc.pdf
Write a computer program as a Win32 console application in C to proc.pdf
 
Which of the following is not matched with its proper germ layer of .pdf
Which of the following is not matched with its proper germ layer of .pdfWhich of the following is not matched with its proper germ layer of .pdf
Which of the following is not matched with its proper germ layer of .pdf
 
What values were affected by simulate airway obstruction, and why Ex.pdf
What values were affected by simulate airway obstruction, and why Ex.pdfWhat values were affected by simulate airway obstruction, and why Ex.pdf
What values were affected by simulate airway obstruction, and why Ex.pdf
 
what is the shadow of irresponsibility and the shadow of privilege .pdf
what is the shadow of irresponsibility and the shadow of privilege .pdfwhat is the shadow of irresponsibility and the shadow of privilege .pdf
what is the shadow of irresponsibility and the shadow of privilege .pdf
 

Recently uploaded

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 

Recently uploaded (20)

UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 

Write a MATLAB program that finds the maximum element in a matrix. Yo.pdf

  • 1. Write a MATLAB program that finds the maximum element in a matrix. You program should first ask users to enter the matrix. Solution %finding the maximum value element in matrix fprintf('enter the matrix B') A=input('enter the matrix A') q=max(max(A));%maximum element in matrix fprintf('maximum element matrix is :') disp(q)