SlideShare a Scribd company logo
Matlab For
Chemical
Engineers
• To learn to program is to be initiated into an
entirely new way of thinking about engineering,
mathematics, and the world in general.
Computation is integral to all modern
engineering disciplines. The better you are at
programming, the better you will be in your
chosen field.
Aaron R. Bradley
Matlab
Sketch up
C/C++Web Dev.
Java.Script
Python
• What is matlab?
• MATLAB  Stands for MATrix LABoratory
• Was created by a person named as Cleve Moller at
the Stanford University in 1970s.
• MATLAB Makes….
1. Linear algebra
2. ODEs
3. Numerical analysis
4. And a lot more… a lot easier...
• WHAT ELSE?
• One word  Simulations
Agenda
Why
Matlab
Polynomials
ODEs In
Matlab
Symbolic Simulink
Concluding
Remarks
Why
Matlab
Polynomials
ODEs In
Matlab
Symbolic Simulink
Concluding
Remarks
Quiver plot of gas behavior in a
thrust-vector device.
Three-dimensional visualization of
MRI data, based on the sample data
set included with MATLAB ® .
The sine function plotted in
polar coordinates is a circle.
Cyclone Plot.
• We consider a matrix A…
• We equate it with B…
• We want to find matrix X…
• We know A*X = B
• Hence inverse(A)*B = X
Linear Stuff
Why Matlab
Polynomial
s
ODEs In
Matlab
Symbolic Simulink
Concluding
Remarks
• Polynomials
• Polynomials are variables with co-efficient
joined via mathematical operators having a
certain degree ‘n’.
• ax^3 +bx^2 +cx + d
• In Matlab polynomials can be written in the form
of row matrices.
• P = [1,0,-2] represents the polynomial x^2 -2.
Similarly.
• P = [2,0,0,0] represents the polynomial 2x^3.
• Polynomials
• The function polyval simply gives the value of the
polynomial at certain values fed to it.
• For example p=3x^2+2*x+1 can be written as
p = [3 2 1] in Matlab.
• Type command q = polyval(p,[5 7 9])
• Then disp(q)
• We get 86, 162, 262
• Polynomials
• MATLAB makes it very easy to fit polynomials to
data.
• Given data vector x = -4:0.1:4
• y = x.^2 is your polynomial…
• P = polyfit (x , y , 2);
• Finds the best second order polynomial that fits
the points between -4:0.1:4
Must/Should Be Named
After The File Name
Must/Should Be Named
After The File Name
Why Matlab Polynomials
ODEs In
Matlab
Symblolic Simulink
Concluding
Remarks
• Differential Equation
• A differential equation is a mathematical
equation that relates some function with its
derivatives. In applications, the functions
usually represent physical quantities, the
derivatives represent their rates of change,
and the equation defines a relationship
between the two.
• Given a differential equation, the solution can be
found by integration.
• Evaluate the derivative at a point and
approximate by straight line
• Errors accumulate!
• Variable time step can decrease the number of
iterations
• ODE Solvers  MATLAB
• MATLAB contains implementations of common
ODE solvers. Using the correct ODE solver can
save you lots of time and give more accurate
results.
• Ode23Low-order solver. Use when integrating
over small intervals or when accuracy is less
important than speed.
• Ode45High order (Runge-Kutta) solver. High
accuracy and reasonable speed. Most commonly
used.
• Ode15sStiff ODE solver (Gear's algorithm), use
when the diff equations have time constants that
vary by orders of magnitude.
• To use standard options and variable time step
• [ t , y ] = ode45 (‘rateFunc', [0,10] , [1;0])
• Inputs: ODE function name (or anonymous
function). This function takes inputs ( t , y ) and
returns dy/dt.
• Time interval: 2-element vector specifying
initial and final time  basically range/limit of
the independent variable.
• Initial conditions: Column vector with an
initial condition for each ODE. This is the first
input to the ODE function.
• Outputs: t contains the time points and y
contains the corresponding values of the
integrated variables.
• Use ode45 to solve for on the range t=[0 10], with
initial condition and… Plot the result. Make
function
• function dy_dt = funcODE ( t , y )
• dy_dt = -t*y/10;
• Integrate the ODE function and plot the result
• [ t , y ] = ode45 (@funcODE , [0 10] , 10);
• OR… You can use an anonymous function…
• [ t , y ] = ode45 (@ ( t , y ) –t*y/10,[0 10],10) ;
• Plot the result
• Plot ( t , y ) ;
Multiple ODEs
Why Matlab Polynomials
ODEs In
Matlab
Symbolic Simulink
Concluding
Remarks
• D:SemestersSemester 1 + Some BooksMatlabmatlab
for engineers.pdf#page=438
1
2
3
4
5
6
7
8
9
1
0
• D:SemestersSemester 5Mass TransferSolution
Manual - Coulson Chemical Engineering (Volume 2 &
3).pdf#page=120
• Using MATLAB ® for the first time is easy;
mastering it can take years.
Why Matlab Polynomials
ODEs In
Matlab
Symbolic Simulink
Concluding
Remarks
• Simulink
• Designed for analyzing dynamic systems , i.e., systems
that change with time (Signals).
– But not limited to it.
– Similar mathematical equations describe the behavior of
dynamic mechanical systems, reactive chemical systems,
and dynamic fluid systems.
• Think of Simulink ® as a virtual analog computer.
• Another way of solving ODEs! (Dynamic Systems).
Leads To The Set Of Blocks That You Can Use In Your
Simulink Model
• Simulink Components
• In Simulink, a model is a collection of blocks which, in
general, represents a system. These are connected with
help of lines.
• Blocks are used to generate, modify, combine, output,
and display signals. Lines are used to transfer signals
from one block to another.
BLOCK
LINES
• D:SemestersSemester 6Instrument And
Processchemical_process_control_an_introduction_to_t
heory_and_practice.pdf#93
Why Matlab Polynomials
ODEs In
Matlab
Symbolic Simulink
Concluding
Remarks
• Why Not Just Excel It?
• Flexibility
– Core Skill
• Complexity
– Make Bits And Pieces Work In Larger Code
• Skill Portability
– Web
– Application Development
– Embedded With a Larger Development Team
Thanks Elon!
Matlab
Matlab
Matlab

More Related Content

What's hot

Distillation column design
Distillation column designDistillation column design
Distillation column design
Faruk Eyigün
 
Section 5 multistage separation processes
Section 5   multistage separation processesSection 5   multistage separation processes
Section 5 multistage separation processes
Amal Magdy
 
1.1 Vapor Liquid Equilibrium
1.1 Vapor Liquid Equilibrium1.1 Vapor Liquid Equilibrium
Distillation Column Design.pdf
Distillation  Column Design.pdfDistillation  Column Design.pdf
Distillation Column Design.pdf
KAhmedRehman
 
Shell and tube heat exchanger design
Shell and tube heat exchanger designShell and tube heat exchanger design
Shell and tube heat exchanger design
hossie
 
Matlab solved problems
Matlab solved problemsMatlab solved problems
Matlab solved problems
Make Mannan
 
Episode 48 : Computer Aided Process Engineering Simulation Problem
Episode 48 :  Computer Aided Process Engineering Simulation Problem Episode 48 :  Computer Aided Process Engineering Simulation Problem
Episode 48 : Computer Aided Process Engineering Simulation Problem
SAJJAD KHUDHUR ABBAS
 
Vapor liquid equilibrium using hysys
Vapor liquid equilibrium using hysysVapor liquid equilibrium using hysys
Vapor liquid equilibrium using hysysUET
 
Estimation of Pressure Drop in Pipe Systems
Estimation of Pressure Drop in Pipe SystemsEstimation of Pressure Drop in Pipe Systems
Estimation of Pressure Drop in Pipe Systems
Gerard B. Hawkins
 
Flash Distillation in Chemical and Process Engineering (Part 3 of 3)
Flash Distillation in Chemical and Process Engineering (Part 3 of 3)Flash Distillation in Chemical and Process Engineering (Part 3 of 3)
Flash Distillation in Chemical and Process Engineering (Part 3 of 3)
Chemical Engineering Guy
 
McCABE-THIELE DESIGN METHOD
McCABE-THIELE DESIGN METHODMcCABE-THIELE DESIGN METHOD
McCABE-THIELE DESIGN METHOD
Meet Patel
 
Performing Iterations in EES
Performing Iterations in EESPerforming Iterations in EES
Performing Iterations in EES
Naveed Rehman
 
Gas Plant Separator Design
Gas Plant Separator DesignGas Plant Separator Design
Gas Plant Separator Design
iyaselex
 
Fired Heater Efficiency Guide
Fired Heater Efficiency GuideFired Heater Efficiency Guide
Fired Heater Efficiency Guide
justinforth
 
Ch 14-fluid flow through porous media
Ch 14-fluid flow through porous mediaCh 14-fluid flow through porous media
Ch 14-fluid flow through porous media
Syed Atif Iqrar
 
Packed bed flooding
Packed bed floodingPacked bed flooding
Packed bed flooding
Venkatesh Sivarchana
 
Distillation column: Foundations, Applications and Scientific Progress
Distillation column: Foundations, Applications and Scientific ProgressDistillation column: Foundations, Applications and Scientific Progress
Distillation column: Foundations, Applications and Scientific Progress
Angel Darío González-Delgado
 
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Chyi-Tsong Chen
 
Molecular diffusion in gases
Molecular diffusion in gasesMolecular diffusion in gases
Molecular diffusion in gases
IIT Kharagpur
 

What's hot (20)

Distillation column design
Distillation column designDistillation column design
Distillation column design
 
Section 5 multistage separation processes
Section 5   multistage separation processesSection 5   multistage separation processes
Section 5 multistage separation processes
 
1.1 Vapor Liquid Equilibrium
1.1 Vapor Liquid Equilibrium1.1 Vapor Liquid Equilibrium
1.1 Vapor Liquid Equilibrium
 
Distillation Column Design.pdf
Distillation  Column Design.pdfDistillation  Column Design.pdf
Distillation Column Design.pdf
 
Shell and tube heat exchanger design
Shell and tube heat exchanger designShell and tube heat exchanger design
Shell and tube heat exchanger design
 
Matlab solved problems
Matlab solved problemsMatlab solved problems
Matlab solved problems
 
Episode 48 : Computer Aided Process Engineering Simulation Problem
Episode 48 :  Computer Aided Process Engineering Simulation Problem Episode 48 :  Computer Aided Process Engineering Simulation Problem
Episode 48 : Computer Aided Process Engineering Simulation Problem
 
Vapor liquid equilibrium using hysys
Vapor liquid equilibrium using hysysVapor liquid equilibrium using hysys
Vapor liquid equilibrium using hysys
 
Estimation of Pressure Drop in Pipe Systems
Estimation of Pressure Drop in Pipe SystemsEstimation of Pressure Drop in Pipe Systems
Estimation of Pressure Drop in Pipe Systems
 
Flash Distillation in Chemical and Process Engineering (Part 3 of 3)
Flash Distillation in Chemical and Process Engineering (Part 3 of 3)Flash Distillation in Chemical and Process Engineering (Part 3 of 3)
Flash Distillation in Chemical and Process Engineering (Part 3 of 3)
 
McCABE-THIELE DESIGN METHOD
McCABE-THIELE DESIGN METHODMcCABE-THIELE DESIGN METHOD
McCABE-THIELE DESIGN METHOD
 
Performing Iterations in EES
Performing Iterations in EESPerforming Iterations in EES
Performing Iterations in EES
 
Gas Plant Separator Design
Gas Plant Separator DesignGas Plant Separator Design
Gas Plant Separator Design
 
Fired Heater Efficiency Guide
Fired Heater Efficiency GuideFired Heater Efficiency Guide
Fired Heater Efficiency Guide
 
Ch 14-fluid flow through porous media
Ch 14-fluid flow through porous mediaCh 14-fluid flow through porous media
Ch 14-fluid flow through porous media
 
Packed bed flooding
Packed bed floodingPacked bed flooding
Packed bed flooding
 
Distillation column: Foundations, Applications and Scientific Progress
Distillation column: Foundations, Applications and Scientific ProgressDistillation column: Foundations, Applications and Scientific Progress
Distillation column: Foundations, Applications and Scientific Progress
 
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
Molecular diffusion in gases
Molecular diffusion in gasesMolecular diffusion in gases
Molecular diffusion in gases
 
Design of condenser
Design of condenserDesign of condenser
Design of condenser
 

Viewers also liked

Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
ideas2ignite
 
Ch 02 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 02 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 02 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 02 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Chyi-Tsong Chen
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Chyi-Tsong Chen
 
matlab,simulink-simulinkmodelingtutorial
matlab,simulink-simulinkmodelingtutorialmatlab,simulink-simulinkmodelingtutorial
matlab,simulink-simulinkmodelingtutorial
dhanniell
 
Simulink
SimulinkSimulink
Simulink
Kelin Jose
 
Ch 07 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 07 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 07 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 07 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Chyi-Tsong Chen
 
Simulink
SimulinkSimulink
Simulink
jackabraham
 
Ch 01 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 01 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 01 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 01 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Chyi-Tsong Chen
 
Matlab Presentation
Matlab PresentationMatlab Presentation
Matlab Presentation
Mohamed El Rayany
 
Matlab simulink introduction
Matlab simulink introductionMatlab simulink introduction
Matlab simulink introduction
Ameen San
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
Ravikiran A
 
MATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaMATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi Sharma
Abee Sharma
 
Induction Motor Tests Using MATLAB/Simulink
Induction Motor Tests Using MATLAB/SimulinkInduction Motor Tests Using MATLAB/Simulink
Induction Motor Tests Using MATLAB/Simulink
Girish Gupta
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
Amr Rashed
 
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulinkMATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
reddyprasad reddyvari
 
Photoshop training jefferson hartman
Photoshop training jefferson hartmanPhotoshop training jefferson hartman
Photoshop training jefferson hartmanjeffersonhartman
 
Emerging trend presentation graphing stories
Emerging trend presentation graphing storiesEmerging trend presentation graphing stories
Emerging trend presentation graphing storiesjeffersonhartman
 
Thesis poster jefferson hartman dec16
Thesis poster jefferson hartman dec16Thesis poster jefferson hartman dec16
Thesis poster jefferson hartman dec16jeffersonhartman
 
Thesis poster jefferson hartman dec14
Thesis poster jefferson hartman dec14Thesis poster jefferson hartman dec14
Thesis poster jefferson hartman dec14jeffersonhartman
 
Polymath For Chemical Engineers
Polymath For Chemical EngineersPolymath For Chemical Engineers
Polymath For Chemical Engineers
Hashim Khan
 

Viewers also liked (20)

Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
 
Ch 02 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 02 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 02 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 02 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
matlab,simulink-simulinkmodelingtutorial
matlab,simulink-simulinkmodelingtutorialmatlab,simulink-simulinkmodelingtutorial
matlab,simulink-simulinkmodelingtutorial
 
Simulink
SimulinkSimulink
Simulink
 
Ch 07 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 07 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 07 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 07 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
Simulink
SimulinkSimulink
Simulink
 
Ch 01 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 01 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 01 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 01 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
Matlab Presentation
Matlab PresentationMatlab Presentation
Matlab Presentation
 
Matlab simulink introduction
Matlab simulink introductionMatlab simulink introduction
Matlab simulink introduction
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
MATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaMATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi Sharma
 
Induction Motor Tests Using MATLAB/Simulink
Induction Motor Tests Using MATLAB/SimulinkInduction Motor Tests Using MATLAB/Simulink
Induction Motor Tests Using MATLAB/Simulink
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
 
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulinkMATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
 
Photoshop training jefferson hartman
Photoshop training jefferson hartmanPhotoshop training jefferson hartman
Photoshop training jefferson hartman
 
Emerging trend presentation graphing stories
Emerging trend presentation graphing storiesEmerging trend presentation graphing stories
Emerging trend presentation graphing stories
 
Thesis poster jefferson hartman dec16
Thesis poster jefferson hartman dec16Thesis poster jefferson hartman dec16
Thesis poster jefferson hartman dec16
 
Thesis poster jefferson hartman dec14
Thesis poster jefferson hartman dec14Thesis poster jefferson hartman dec14
Thesis poster jefferson hartman dec14
 
Polymath For Chemical Engineers
Polymath For Chemical EngineersPolymath For Chemical Engineers
Polymath For Chemical Engineers
 

Similar to Matlab

Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
Ravibabu Kancharla
 
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
ssuserdee4d8
 
Mit6 094 iap10_lec01
Mit6 094 iap10_lec01Mit6 094 iap10_lec01
Mit6 094 iap10_lec01
Tribhuwan Pant
 
MATLAB_CIS601-03.ppt
MATLAB_CIS601-03.pptMATLAB_CIS601-03.ppt
MATLAB_CIS601-03.ppt
aboma2hawi
 
What`s New in Java 8
What`s New in Java 8What`s New in Java 8
What`s New in Java 8
Mohsen Zainalpour
 
Engineering Numerical Analysis-Introduction.pdf
Engineering Numerical Analysis-Introduction.pdfEngineering Numerical Analysis-Introduction.pdf
Engineering Numerical Analysis-Introduction.pdf
ssuseraae901
 
Programming in python
Programming in pythonProgramming in python
Programming in python
Ivan Rojas
 
INTRODUCTION TO MATLAB for PG students.ppt
INTRODUCTION TO MATLAB for PG students.pptINTRODUCTION TO MATLAB for PG students.ppt
INTRODUCTION TO MATLAB for PG students.ppt
Karthik537368
 
Matlab lecture 1 - installation of matlab, introduction and course outline@taj
Matlab lecture 1 - installation of matlab, introduction and course outline@tajMatlab lecture 1 - installation of matlab, introduction and course outline@taj
Matlab lecture 1 - installation of matlab, introduction and course outline@taj
Tajim Md. Niamat Ullah Akhund
 
Object Oriented Programming in Matlab
Object Oriented Programming in Matlab Object Oriented Programming in Matlab
Object Oriented Programming in Matlab
AlbanLevy
 
Lecture 01 variables scripts and operations
Lecture 01   variables scripts and operationsLecture 01   variables scripts and operations
Lecture 01 variables scripts and operations
Smee Kaem Chann
 
Basic concept of MATLAB.ppt
Basic concept of MATLAB.pptBasic concept of MATLAB.ppt
Basic concept of MATLAB.ppt
aliraza2732
 
Data Structures- Part1 overview and review
Data Structures- Part1 overview and reviewData Structures- Part1 overview and review
Data Structures- Part1 overview and review
Abdullah Al-hazmy
 
MatlabIntro (1).ppt
MatlabIntro (1).pptMatlabIntro (1).ppt
MatlabIntro (1).ppt
AkashSingh728626
 
Why computer programming
Why computer programmingWhy computer programming
Why computer programmingTUOS-Sam
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
Vinay Kumar
 
Matlab pt1
Matlab pt1Matlab pt1
Matlab pt1
Austin Baird
 
Matlab Tutorial.ppt
Matlab Tutorial.pptMatlab Tutorial.ppt
Matlab Tutorial.ppt
RaviMuthamala1
 

Similar to Matlab (20)

Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
 
Mit6 094 iap10_lec01
Mit6 094 iap10_lec01Mit6 094 iap10_lec01
Mit6 094 iap10_lec01
 
Book
BookBook
Book
 
MATLAB_CIS601-03.ppt
MATLAB_CIS601-03.pptMATLAB_CIS601-03.ppt
MATLAB_CIS601-03.ppt
 
What`s New in Java 8
What`s New in Java 8What`s New in Java 8
What`s New in Java 8
 
Engineering Numerical Analysis-Introduction.pdf
Engineering Numerical Analysis-Introduction.pdfEngineering Numerical Analysis-Introduction.pdf
Engineering Numerical Analysis-Introduction.pdf
 
Matlab lec1
Matlab lec1Matlab lec1
Matlab lec1
 
Programming in python
Programming in pythonProgramming in python
Programming in python
 
INTRODUCTION TO MATLAB for PG students.ppt
INTRODUCTION TO MATLAB for PG students.pptINTRODUCTION TO MATLAB for PG students.ppt
INTRODUCTION TO MATLAB for PG students.ppt
 
Matlab lecture 1 - installation of matlab, introduction and course outline@taj
Matlab lecture 1 - installation of matlab, introduction and course outline@tajMatlab lecture 1 - installation of matlab, introduction and course outline@taj
Matlab lecture 1 - installation of matlab, introduction and course outline@taj
 
Object Oriented Programming in Matlab
Object Oriented Programming in Matlab Object Oriented Programming in Matlab
Object Oriented Programming in Matlab
 
Lecture 01 variables scripts and operations
Lecture 01   variables scripts and operationsLecture 01   variables scripts and operations
Lecture 01 variables scripts and operations
 
Basic concept of MATLAB.ppt
Basic concept of MATLAB.pptBasic concept of MATLAB.ppt
Basic concept of MATLAB.ppt
 
Data Structures- Part1 overview and review
Data Structures- Part1 overview and reviewData Structures- Part1 overview and review
Data Structures- Part1 overview and review
 
MatlabIntro (1).ppt
MatlabIntro (1).pptMatlabIntro (1).ppt
MatlabIntro (1).ppt
 
Why computer programming
Why computer programmingWhy computer programming
Why computer programming
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
 
Matlab pt1
Matlab pt1Matlab pt1
Matlab pt1
 
Matlab Tutorial.ppt
Matlab Tutorial.pptMatlab Tutorial.ppt
Matlab Tutorial.ppt
 

More from Hashim Khan

Master's Thesis Submission
Master's Thesis SubmissionMaster's Thesis Submission
Master's Thesis Submission
Hashim Khan
 
Reactor Design
Reactor DesignReactor Design
Reactor Design
Hashim Khan
 
RIH ISCMRE'18
RIH ISCMRE'18RIH ISCMRE'18
RIH ISCMRE'18
Hashim Khan
 
Hashim Internship Report 23 12 2016
Hashim Internship Report 23 12 2016Hashim Internship Report 23 12 2016
Hashim Internship Report 23 12 2016
Hashim Khan
 
Analysis of Heavy Metals In Waster Water (Poster)
Analysis of Heavy Metals In Waster Water (Poster)Analysis of Heavy Metals In Waster Water (Poster)
Analysis of Heavy Metals In Waster Water (Poster)
Hashim Khan
 
Studies
StudiesStudies
Studies
Hashim Khan
 
Ethyl Benzene
Ethyl BenzeneEthyl Benzene
Ethyl Benzene
Hashim Khan
 
Extraction of Heavy Metals From Industrial Waste Water
Extraction of Heavy Metals From Industrial Waste WaterExtraction of Heavy Metals From Industrial Waste Water
Extraction of Heavy Metals From Industrial Waste Water
Hashim Khan
 
Calculation Of Pump Head
Calculation Of Pump HeadCalculation Of Pump Head
Calculation Of Pump Head
Hashim Khan
 
Chroma pigments and dyestuff
Chroma pigments and dyestuffChroma pigments and dyestuff
Chroma pigments and dyestuff
Hashim Khan
 
Chemical engineer
Chemical engineerChemical engineer
Chemical engineer
Hashim Khan
 
Chromatex Chemicals
Chromatex ChemicalsChromatex Chemicals
Chromatex Chemicals
Hashim Khan
 
Pumps and piping
Pumps and pipingPumps and piping
Pumps and piping
Hashim Khan
 
Chromatex Dyes And Pigment
Chromatex Dyes And PigmentChromatex Dyes And Pigment
Chromatex Dyes And Pigment
Hashim Khan
 
Coal Oxidation And Losses
Coal Oxidation And LossesCoal Oxidation And Losses
Coal Oxidation And Losses
Hashim Khan
 
Nc assignment
Nc assignmentNc assignment
Nc assignment
Hashim Khan
 
Jaw crusher
Jaw crusherJaw crusher
Jaw crusher
Hashim Khan
 
3 d printing
3 d printing3 d printing
3 d printing
Hashim Khan
 
Workshop assignment
Workshop assignmentWorkshop assignment
Workshop assignmentHashim Khan
 

More from Hashim Khan (19)

Master's Thesis Submission
Master's Thesis SubmissionMaster's Thesis Submission
Master's Thesis Submission
 
Reactor Design
Reactor DesignReactor Design
Reactor Design
 
RIH ISCMRE'18
RIH ISCMRE'18RIH ISCMRE'18
RIH ISCMRE'18
 
Hashim Internship Report 23 12 2016
Hashim Internship Report 23 12 2016Hashim Internship Report 23 12 2016
Hashim Internship Report 23 12 2016
 
Analysis of Heavy Metals In Waster Water (Poster)
Analysis of Heavy Metals In Waster Water (Poster)Analysis of Heavy Metals In Waster Water (Poster)
Analysis of Heavy Metals In Waster Water (Poster)
 
Studies
StudiesStudies
Studies
 
Ethyl Benzene
Ethyl BenzeneEthyl Benzene
Ethyl Benzene
 
Extraction of Heavy Metals From Industrial Waste Water
Extraction of Heavy Metals From Industrial Waste WaterExtraction of Heavy Metals From Industrial Waste Water
Extraction of Heavy Metals From Industrial Waste Water
 
Calculation Of Pump Head
Calculation Of Pump HeadCalculation Of Pump Head
Calculation Of Pump Head
 
Chroma pigments and dyestuff
Chroma pigments and dyestuffChroma pigments and dyestuff
Chroma pigments and dyestuff
 
Chemical engineer
Chemical engineerChemical engineer
Chemical engineer
 
Chromatex Chemicals
Chromatex ChemicalsChromatex Chemicals
Chromatex Chemicals
 
Pumps and piping
Pumps and pipingPumps and piping
Pumps and piping
 
Chromatex Dyes And Pigment
Chromatex Dyes And PigmentChromatex Dyes And Pigment
Chromatex Dyes And Pigment
 
Coal Oxidation And Losses
Coal Oxidation And LossesCoal Oxidation And Losses
Coal Oxidation And Losses
 
Nc assignment
Nc assignmentNc assignment
Nc assignment
 
Jaw crusher
Jaw crusherJaw crusher
Jaw crusher
 
3 d printing
3 d printing3 d printing
3 d printing
 
Workshop assignment
Workshop assignmentWorkshop assignment
Workshop assignment
 

Recently uploaded

Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 

Recently uploaded (20)

Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 

Matlab

  • 2. • To learn to program is to be initiated into an entirely new way of thinking about engineering, mathematics, and the world in general. Computation is integral to all modern engineering disciplines. The better you are at programming, the better you will be in your chosen field. Aaron R. Bradley
  • 3.
  • 5. • What is matlab? • MATLAB  Stands for MATrix LABoratory • Was created by a person named as Cleve Moller at the Stanford University in 1970s. • MATLAB Makes…. 1. Linear algebra 2. ODEs 3. Numerical analysis 4. And a lot more… a lot easier... • WHAT ELSE? • One word  Simulations
  • 8.
  • 9. Quiver plot of gas behavior in a thrust-vector device. Three-dimensional visualization of MRI data, based on the sample data set included with MATLAB ® .
  • 10. The sine function plotted in polar coordinates is a circle. Cyclone Plot.
  • 11. • We consider a matrix A… • We equate it with B… • We want to find matrix X… • We know A*X = B • Hence inverse(A)*B = X Linear Stuff
  • 12. Why Matlab Polynomial s ODEs In Matlab Symbolic Simulink Concluding Remarks
  • 13. • Polynomials • Polynomials are variables with co-efficient joined via mathematical operators having a certain degree ‘n’. • ax^3 +bx^2 +cx + d • In Matlab polynomials can be written in the form of row matrices. • P = [1,0,-2] represents the polynomial x^2 -2. Similarly. • P = [2,0,0,0] represents the polynomial 2x^3.
  • 14. • Polynomials • The function polyval simply gives the value of the polynomial at certain values fed to it. • For example p=3x^2+2*x+1 can be written as p = [3 2 1] in Matlab. • Type command q = polyval(p,[5 7 9]) • Then disp(q) • We get 86, 162, 262
  • 15. • Polynomials • MATLAB makes it very easy to fit polynomials to data. • Given data vector x = -4:0.1:4 • y = x.^2 is your polynomial… • P = polyfit (x , y , 2); • Finds the best second order polynomial that fits the points between -4:0.1:4
  • 16.
  • 17. Must/Should Be Named After The File Name
  • 18. Must/Should Be Named After The File Name
  • 19.
  • 20.
  • 21. Why Matlab Polynomials ODEs In Matlab Symblolic Simulink Concluding Remarks
  • 22. • Differential Equation • A differential equation is a mathematical equation that relates some function with its derivatives. In applications, the functions usually represent physical quantities, the derivatives represent their rates of change, and the equation defines a relationship between the two.
  • 23. • Given a differential equation, the solution can be found by integration. • Evaluate the derivative at a point and approximate by straight line • Errors accumulate! • Variable time step can decrease the number of iterations
  • 24. • ODE Solvers  MATLAB • MATLAB contains implementations of common ODE solvers. Using the correct ODE solver can save you lots of time and give more accurate results. • Ode23Low-order solver. Use when integrating over small intervals or when accuracy is less important than speed. • Ode45High order (Runge-Kutta) solver. High accuracy and reasonable speed. Most commonly used. • Ode15sStiff ODE solver (Gear's algorithm), use when the diff equations have time constants that vary by orders of magnitude.
  • 25. • To use standard options and variable time step • [ t , y ] = ode45 (‘rateFunc', [0,10] , [1;0]) • Inputs: ODE function name (or anonymous function). This function takes inputs ( t , y ) and returns dy/dt. • Time interval: 2-element vector specifying initial and final time  basically range/limit of the independent variable. • Initial conditions: Column vector with an initial condition for each ODE. This is the first input to the ODE function. • Outputs: t contains the time points and y contains the corresponding values of the integrated variables.
  • 26. • Use ode45 to solve for on the range t=[0 10], with initial condition and… Plot the result. Make function • function dy_dt = funcODE ( t , y ) • dy_dt = -t*y/10; • Integrate the ODE function and plot the result • [ t , y ] = ode45 (@funcODE , [0 10] , 10); • OR… You can use an anonymous function… • [ t , y ] = ode45 (@ ( t , y ) –t*y/10,[0 10],10) ; • Plot the result • Plot ( t , y ) ;
  • 27.
  • 28.
  • 30.
  • 31. Why Matlab Polynomials ODEs In Matlab Symbolic Simulink Concluding Remarks
  • 32.
  • 33.
  • 34. • D:SemestersSemester 1 + Some BooksMatlabmatlab for engineers.pdf#page=438
  • 35.
  • 37. • D:SemestersSemester 5Mass TransferSolution Manual - Coulson Chemical Engineering (Volume 2 & 3).pdf#page=120
  • 38. • Using MATLAB ® for the first time is easy; mastering it can take years.
  • 39. Why Matlab Polynomials ODEs In Matlab Symbolic Simulink Concluding Remarks
  • 40. • Simulink • Designed for analyzing dynamic systems , i.e., systems that change with time (Signals). – But not limited to it. – Similar mathematical equations describe the behavior of dynamic mechanical systems, reactive chemical systems, and dynamic fluid systems. • Think of Simulink ® as a virtual analog computer. • Another way of solving ODEs! (Dynamic Systems).
  • 41. Leads To The Set Of Blocks That You Can Use In Your Simulink Model
  • 42. • Simulink Components • In Simulink, a model is a collection of blocks which, in general, represents a system. These are connected with help of lines. • Blocks are used to generate, modify, combine, output, and display signals. Lines are used to transfer signals from one block to another. BLOCK LINES
  • 43. • D:SemestersSemester 6Instrument And Processchemical_process_control_an_introduction_to_t heory_and_practice.pdf#93
  • 44. Why Matlab Polynomials ODEs In Matlab Symbolic Simulink Concluding Remarks
  • 45. • Why Not Just Excel It? • Flexibility – Core Skill • Complexity – Make Bits And Pieces Work In Larger Code • Skill Portability – Web – Application Development – Embedded With a Larger Development Team
  • 46.