SlideShare a Scribd company logo
SESSION-3 :MATLAB
Algorithm and Flowchart
By: Prof. Ganesh Ingle
Session objective
Arrays
Array Creation , Accessing Elements
Sub Arrays, Representation, Operations
Maximum and Minimum values in Matrix
Potential Energy-Spring Problem
SUMMARY
Algorithm and Flowchart
Definition of Algorithm
To write a logical step-by-step method to solve the problem is called the algorithm; in other words, an
algorithm is a procedure for solving problems. In order to solve a mathematical or computer problem, this
is the first step in the process. An algorithm includes calculations, reasoning, and data processing.
Algorithms can be presented by natural languages, pseudocode, and flowcharts, etc.
Definition of Flowchart
A flowchart is the graphical or pictorial representation of an algorithm with the help of different symbols,
shapes, and arrows to demonstrate a process or a program. With algorithms, we can easily understand a
program. The main purpose of using a flowchart is to analyze different methods. Several standard symbols
are applied in a flowchart:
Algorithm Flowchart
It is a procedure for solving problems. It is a graphic representation of a process.
The process is shown in step-by-step instruction.
The process is shown in block-by-block information
diagram.
It is complex and difficult to understand. It is intuitive and easy to understand.
It is convenient to debug errors. It is hard to debug errors.
The solution is showcased in natural language. The solution is showcased in pictorial format.
It is somewhat easier to solve complex problem. It is hard to solve complex problem.
It costs more time to create an algorithm. It costs less time to create a flowchart.
Flowchart Symbols
Flowchart Symbols
Flowchart Symbols
Start
Read A, B
Is A > B
Print A
Print B
End
Yes No
Flow Chart to
find largest of
two numbers:
Flowchart Exercise
Start
Read A, B
Is A > B
Print A
Print B
End
Yes No
Flow Chart to
find largest of
two numbers:
Flowchart to find the largest of three numbers A,B, and C:
Flowchart Exercise
1. Find the roots for the quadratic equation
2. Find the largest among n numbers entered
by the user.
3. Find the summation of n even numbers
entered by user.
4. Find the linear velocity provided that
frequency and radius at which a particle
is performing circular motion.
5. Check a number is prime or not.
6. Check PIN of the ATM is palindrome or not
7. Convert degree Celsius to Degree kelvin
Flowchart Exercise
Find the summation of n even numbers entered by user.
Flowchart Exercise
Find whether entered number is prime or not
Flowchart Exercise
Fibonacci series
Flowchart Exercise
Design Process Flowchart
Flowchart Exercise
THANK YOU
Image Source
searchenterpriseai.techtarget.com
wikipedia

More Related Content

PDF
Main topic 3 problem solving and office automation
PDF
Programming with matlab session 4
PPT
Introduction To Algorithm [2]
PDF
Database Management System-session 3-4-5
PDF
Introduction to c programming
PPTX
NACA Regula Falsi Method
PPTX
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Main topic 3 problem solving and office automation
Programming with matlab session 4
Introduction To Algorithm [2]
Database Management System-session 3-4-5
Introduction to c programming
NACA Regula Falsi Method
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...

What's hot (20)

PPTX
Principle source of optimazation
PPTX
Matlab 1(operations on_matrix)
PPT
Intermediate code generation
PPTX
#1 designandanalysis of algo
PDF
[ITP - Lecture 04] Variables and Constants in C/C++
PPTX
Back patching
PPTX
Intermediate code
PPT
3 algorithm-and-flowchart
PPT
Intermediate code generation (Compiler Design)
PPT
Chapter 6 intermediate code generation
PPTX
Algorithm and pseudocode conventions
PPT
Intermediate code generation
PPTX
Principal source of optimization in compiler design
PPTX
Algorithm Development
PPT
Introduction to data structures and Algorithm
PPT
Model and Design
PPTX
Lecture 12 intermediate code generation
PDF
Intermediate code generation
PPT
PPT
Chapter 6 Intermediate Code Generation
Principle source of optimazation
Matlab 1(operations on_matrix)
Intermediate code generation
#1 designandanalysis of algo
[ITP - Lecture 04] Variables and Constants in C/C++
Back patching
Intermediate code
3 algorithm-and-flowchart
Intermediate code generation (Compiler Design)
Chapter 6 intermediate code generation
Algorithm and pseudocode conventions
Intermediate code generation
Principal source of optimization in compiler design
Algorithm Development
Introduction to data structures and Algorithm
Model and Design
Lecture 12 intermediate code generation
Intermediate code generation
Chapter 6 Intermediate Code Generation
Ad

Similar to Programming with matlab session 3 notes (20)

PPT
PDF
Fundamental of Information Technology - UNIT 6
PPTX
Algorithms-Flowcharts for programming fundamental
PDF
algorithms and flow chart overview.pdf
PPT
Algorithms and flowcharts
PDF
Algorithms and flowcharts
PPT
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
PPTX
Std 10 computer chapter 9 Problems and Problem Solving
PPT
Algorithms and flowcharts ppt (seminar presentation)..
PPTX
Algorithm and flowchart.pptx
PDF
ALGORITHMS AND FLOWCHARTS
PDF
Flowcharts. Algorithms and pseudo codepdf
PPTX
Algorithm for computational problematic sit
PPTX
Algorithms and Flowcharts
PPTX
Pa1 flow chart
PPTX
Draw the flowchart of the above algorithm.pptx
PPT
Algorithmsandflowcharts1
PPT
Algorithmsandflowcharts1
PPTX
Flowchart and algorithm
PPT
Algorithmsandflowcharts1
Fundamental of Information Technology - UNIT 6
Algorithms-Flowcharts for programming fundamental
algorithms and flow chart overview.pdf
Algorithms and flowcharts
Algorithms and flowcharts
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Std 10 computer chapter 9 Problems and Problem Solving
Algorithms and flowcharts ppt (seminar presentation)..
Algorithm and flowchart.pptx
ALGORITHMS AND FLOWCHARTS
Flowcharts. Algorithms and pseudo codepdf
Algorithm for computational problematic sit
Algorithms and Flowcharts
Pa1 flow chart
Draw the flowchart of the above algorithm.pptx
Algorithmsandflowcharts1
Algorithmsandflowcharts1
Flowchart and algorithm
Algorithmsandflowcharts1
Ad

More from Infinity Tech Solutions (20)

PDF
Database management system session 6
PDF
Database management system session 5
PDF
Database Management System-session1-2
PDF
PDF
Bds session 13 14
PDF
Computer memory, Types of programming languages
PDF
Basic hardware familiarization
PDF
User defined functions in matlab
PDF
Programming with matlab session 6
PPTX
AI/ML/DL/BCT A Revolution in Maritime Sector
PDF
Programming with matlab session 5 looping
PDF
BIG DATA Session 7 8
PDF
BIG DATA Session 6
PDF
PDF
Programming with matlab session 2
PDF
Programming with matlab session 1
Database management system session 6
Database management system session 5
Database Management System-session1-2
Bds session 13 14
Computer memory, Types of programming languages
Basic hardware familiarization
User defined functions in matlab
Programming with matlab session 6
AI/ML/DL/BCT A Revolution in Maritime Sector
Programming with matlab session 5 looping
BIG DATA Session 7 8
BIG DATA Session 6
Programming with matlab session 2
Programming with matlab session 1

Recently uploaded (20)

PPTX
Lesson 3_Tessellation.pptx finite Mathematics
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Geodesy 1.pptx...............................................
PPT
Mechanical Engineering MATERIALS Selection
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Digital Logic Computer Design lecture notes
PDF
Well-logging-methods_new................
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
PPT on Performance Review to get promotions
Lesson 3_Tessellation.pptx finite Mathematics
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Operating System & Kernel Study Guide-1 - converted.pdf
Geodesy 1.pptx...............................................
Mechanical Engineering MATERIALS Selection
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Sustainable Sites - Green Building Construction
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Internet of Things (IOT) - A guide to understanding
Digital Logic Computer Design lecture notes
Well-logging-methods_new................
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Foundation to blockchain - A guide to Blockchain Tech
CYBER-CRIMES AND SECURITY A guide to understanding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
bas. eng. economics group 4 presentation 1.pptx
PPT on Performance Review to get promotions

Programming with matlab session 3 notes

  • 1. SESSION-3 :MATLAB Algorithm and Flowchart By: Prof. Ganesh Ingle
  • 2. Session objective Arrays Array Creation , Accessing Elements Sub Arrays, Representation, Operations Maximum and Minimum values in Matrix Potential Energy-Spring Problem SUMMARY
  • 3. Algorithm and Flowchart Definition of Algorithm To write a logical step-by-step method to solve the problem is called the algorithm; in other words, an algorithm is a procedure for solving problems. In order to solve a mathematical or computer problem, this is the first step in the process. An algorithm includes calculations, reasoning, and data processing. Algorithms can be presented by natural languages, pseudocode, and flowcharts, etc. Definition of Flowchart A flowchart is the graphical or pictorial representation of an algorithm with the help of different symbols, shapes, and arrows to demonstrate a process or a program. With algorithms, we can easily understand a program. The main purpose of using a flowchart is to analyze different methods. Several standard symbols are applied in a flowchart: Algorithm Flowchart It is a procedure for solving problems. It is a graphic representation of a process. The process is shown in step-by-step instruction. The process is shown in block-by-block information diagram. It is complex and difficult to understand. It is intuitive and easy to understand. It is convenient to debug errors. It is hard to debug errors. The solution is showcased in natural language. The solution is showcased in pictorial format. It is somewhat easier to solve complex problem. It is hard to solve complex problem. It costs more time to create an algorithm. It costs less time to create a flowchart.
  • 6. Flowchart Symbols Start Read A, B Is A > B Print A Print B End Yes No Flow Chart to find largest of two numbers:
  • 7. Flowchart Exercise Start Read A, B Is A > B Print A Print B End Yes No Flow Chart to find largest of two numbers:
  • 8. Flowchart to find the largest of three numbers A,B, and C: Flowchart Exercise
  • 9. 1. Find the roots for the quadratic equation 2. Find the largest among n numbers entered by the user. 3. Find the summation of n even numbers entered by user. 4. Find the linear velocity provided that frequency and radius at which a particle is performing circular motion. 5. Check a number is prime or not. 6. Check PIN of the ATM is palindrome or not 7. Convert degree Celsius to Degree kelvin Flowchart Exercise
  • 10. Find the summation of n even numbers entered by user. Flowchart Exercise
  • 11. Find whether entered number is prime or not Flowchart Exercise