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

What's hot (20)

PPTX
Principle source of optimazation
Siva Sathya
 
PPTX
Matlab 1(operations on_matrix)
harman kaur
 
PPT
Intermediate code generation
Dr.DHANALAKSHMI SENTHILKUMAR
 
PPTX
#1 designandanalysis of algo
Brijida Charizma Ardoña-Navarro
 
PDF
[ITP - Lecture 04] Variables and Constants in C/C++
Muhammad Hammad Waseem
 
PPTX
Back patching
santhiya thavanthi
 
PPTX
Intermediate code
Vishal Agarwal
 
PPT
3 algorithm-and-flowchart
Rohit Shrivastava
 
PPT
Intermediate code generation (Compiler Design)
Tasif Tanzim
 
PPT
Chapter 6 intermediate code generation
Vipul Naik
 
PPTX
Algorithm and pseudocode conventions
saranyatdr
 
PPT
Intermediate code generation
RamchandraRegmi
 
PPTX
Principal source of optimization in compiler design
Rajkumar R
 
PPTX
Algorithm Development
ALI RAZA
 
PPT
Introduction to data structures and Algorithm
Dhaval Kaneria
 
PPT
Model and Design
Dr Shashikant Athawale
 
PPTX
Lecture 12 intermediate code generation
Iffat Anjum
 
PDF
Intermediate code generation
Akshaya Arunan
 
PPT
Slide1
Thiti Sununta
 
PPT
Chapter 6 Intermediate Code Generation
Radhakrishnan Chinnusamy
 
Principle source of optimazation
Siva Sathya
 
Matlab 1(operations on_matrix)
harman kaur
 
Intermediate code generation
Dr.DHANALAKSHMI SENTHILKUMAR
 
#1 designandanalysis of algo
Brijida Charizma Ardoña-Navarro
 
[ITP - Lecture 04] Variables and Constants in C/C++
Muhammad Hammad Waseem
 
Back patching
santhiya thavanthi
 
Intermediate code
Vishal Agarwal
 
3 algorithm-and-flowchart
Rohit Shrivastava
 
Intermediate code generation (Compiler Design)
Tasif Tanzim
 
Chapter 6 intermediate code generation
Vipul Naik
 
Algorithm and pseudocode conventions
saranyatdr
 
Intermediate code generation
RamchandraRegmi
 
Principal source of optimization in compiler design
Rajkumar R
 
Algorithm Development
ALI RAZA
 
Introduction to data structures and Algorithm
Dhaval Kaneria
 
Model and Design
Dr Shashikant Athawale
 
Lecture 12 intermediate code generation
Iffat Anjum
 
Intermediate code generation
Akshaya Arunan
 
Chapter 6 Intermediate Code Generation
Radhakrishnan Chinnusamy
 

Similar to Programming with matlab session 3 notes (20)

PPT
Chap6
artipradhan
 
PDF
Fundamental of Information Technology - UNIT 6
Shipra Swati
 
PPTX
Algorithms-Flowcharts for programming fundamental
fazayn927
 
PDF
algorithms and flow chart overview.pdf
AmanPratik11
 
PPT
Algorithms and flowcharts
Sajib
 
PDF
Algorithms and flowcharts
khair20
 
PPT
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Kirti Verma
 
PPTX
Std 10 computer chapter 9 Problems and Problem Solving
Nuzhat Memon
 
PPT
Algorithms and flowcharts ppt (seminar presentation)..
Nagendra N
 
PPTX
Algorithm and flowchart.pptx
MaheShiva
 
PDF
ALGORITHMS AND FLOWCHARTS
Kate Campbell
 
PPTX
Algorithm for computational problematic sit
Saurabh846965
 
PPTX
Algorithms and Flowcharts
Deva Singh
 
PPTX
Pa1 flow chart
aiclub_slides
 
PPT
Algorithmsandflowcharts1
rajnidhiman
 
PPT
Algorithmsandflowcharts1
ወዲ ህዝቢ
 
PPTX
Flowchart and algorithm
DHANIK VIKRANT
 
PPT
Algorithmsandflowcharts1
Jesuraj Love
 
PPT
Algorithmsandflowcharts1
luhkahreth
 
PPT
Algorithms and flowcharts1
Lincoln School
 
Fundamental of Information Technology - UNIT 6
Shipra Swati
 
Algorithms-Flowcharts for programming fundamental
fazayn927
 
algorithms and flow chart overview.pdf
AmanPratik11
 
Algorithms and flowcharts
Sajib
 
Algorithms and flowcharts
khair20
 
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Kirti Verma
 
Std 10 computer chapter 9 Problems and Problem Solving
Nuzhat Memon
 
Algorithms and flowcharts ppt (seminar presentation)..
Nagendra N
 
Algorithm and flowchart.pptx
MaheShiva
 
ALGORITHMS AND FLOWCHARTS
Kate Campbell
 
Algorithm for computational problematic sit
Saurabh846965
 
Algorithms and Flowcharts
Deva Singh
 
Pa1 flow chart
aiclub_slides
 
Algorithmsandflowcharts1
rajnidhiman
 
Algorithmsandflowcharts1
ወዲ ህዝቢ
 
Flowchart and algorithm
DHANIK VIKRANT
 
Algorithmsandflowcharts1
Jesuraj Love
 
Algorithmsandflowcharts1
luhkahreth
 
Algorithms and flowcharts1
Lincoln School
 
Ad

More from Infinity Tech Solutions (20)

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

Recently uploaded (20)

PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
PPTX
Unit_I Functional Units, Instruction Sets.pptx
logaprakash9
 
PPTX
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
PDF
Tesia Dobrydnia - An Avid Hiker And Backpacker
Tesia Dobrydnia
 
DOCX
Engineering Geology Field Report to Malekhu .docx
justprashant567
 
PDF
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
 
PDF
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
PDF
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
PPTX
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
PDF
Python Mini Project: Command-Line Quiz Game for School/College Students
MPREETHI7
 
PDF
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
PDF
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
PDF
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
PDF
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
PDF
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
PDF
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
PPTX
Functions in Python Programming Language
BeulahS2
 
PDF
PRIZ Academy - Process functional modelling
PRIZ Guru
 
PPTX
ASBC application presentation template (ENG)_v3 (1).pptx
HassanMohammed730118
 
PDF
01-introduction to the ProcessDesign.pdf
StiveBrack
 
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
Unit_I Functional Units, Instruction Sets.pptx
logaprakash9
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
Tesia Dobrydnia - An Avid Hiker And Backpacker
Tesia Dobrydnia
 
Engineering Geology Field Report to Malekhu .docx
justprashant567
 
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
 
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
Python Mini Project: Command-Line Quiz Game for School/College Students
MPREETHI7
 
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
Functions in Python Programming Language
BeulahS2
 
PRIZ Academy - Process functional modelling
PRIZ Guru
 
ASBC application presentation template (ENG)_v3 (1).pptx
HassanMohammed730118
 
01-introduction to the ProcessDesign.pdf
StiveBrack
 

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