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)

PPTX
Flowcharting and Algorithm
PPT
PPTX
Algorithm for computational problematic sit
PDF
Logic Development and Algorithm.
PDF
C Programming Slides for 1st Year Engg students
PPTX
algorithm and Pseudocode
PDF
Problem solving methodology
PDF
Cp module 2
PPTX
UNIT 1.pptx Programming for Problem Solving
DOCX
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
PPT
Chap3 flow charts
PDF
Algoritmos
PPTX
Design and analysis of algorithms Module-I.pptx
PPT
Basics of Programming Algorithms and Flowchart
PPTX
Data structures Lecture no. 4
PPTX
Algorithm and flowchart.pptx
PPT
chapter 1
PDF
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
PDF
Introduction to data structure and algorithm
PPTX
Algorithm & data structure lec2
Flowcharting and Algorithm
Algorithm for computational problematic sit
Logic Development and Algorithm.
C Programming Slides for 1st Year Engg students
algorithm and Pseudocode
Problem solving methodology
Cp module 2
UNIT 1.pptx Programming for Problem Solving
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
Chap3 flow charts
Algoritmos
Design and analysis of algorithms Module-I.pptx
Basics of Programming Algorithms and Flowchart
Data structures Lecture no. 4
Algorithm and flowchart.pptx
chapter 1
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
Introduction to data structure and algorithm
Algorithm & data structure lec2
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)

PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PPTX
Petroleum Refining & Petrochemicals.pptx
PDF
Applications of Equal_Area_Criterion.pdf
PPTX
MAD Unit - 3 User Interface and Data Management (Diploma IT)
PDF
Introduction to Power System StabilityPS
PPTX
CONTRACTS IN CONSTRUCTION PROJECTS: TYPES
PPTX
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PDF
Cryptography and Network Security-Module-I.pdf
PDF
First part_B-Image Processing - 1 of 2).pdf
PDF
Beginners-Guide-to-Artificial-Intelligence.pdf
PPTX
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
Present and Future of Systems Engineering: Air Combat Systems
PPTX
PRASUNET_20240614003_231416_0000[1].pptx
DOC
T Pandian CV Madurai pandi kokkaf illaya
PPTX
Micro1New.ppt.pptx the mai themes of micfrobiology
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
Petroleum Refining & Petrochemicals.pptx
Applications of Equal_Area_Criterion.pdf
MAD Unit - 3 User Interface and Data Management (Diploma IT)
Introduction to Power System StabilityPS
CONTRACTS IN CONSTRUCTION PROJECTS: TYPES
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
August -2025_Top10 Read_Articles_ijait.pdf
Cryptography and Network Security-Module-I.pdf
First part_B-Image Processing - 1 of 2).pdf
Beginners-Guide-to-Artificial-Intelligence.pdf
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
Management Information system : MIS-e-Business Systems.pptx
Present and Future of Systems Engineering: Air Combat Systems
PRASUNET_20240614003_231416_0000[1].pptx
T Pandian CV Madurai pandi kokkaf illaya
Micro1New.ppt.pptx the mai themes of micfrobiology

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