SlideShare a Scribd company logo
1
SRI RAMAKRISHNA ENGINEERING COLLEGE
[Educational Service: SNR Sons Charitable Trust]
[Autonomous Institution, Accredited by NAAC with ‘A’ Grade]
[Approved by AICTE and Permanently Affiliated to Anna University, Chennai]
[ISO 9001:2015 Certified and all eligible programmes Accredited by NBA]
Vattamalaipalayam, N.G.G.O. Colony Post, Coimbatore – 641 022.
Course Instructors:
Dr. M.EZHILARASI, AP/EEE
No. of Credits: 3
Department of Electrical and Electronics Engineering
20EI271 – SIMULATION LABORATORY
Course Outcomes
On successful completion of the course, students will
be able to
• CO1 : Outline the features of mathematical functions
using computational software.
• CO2: Develop a code utilizing basic commands and
functions of simulation software to solve mathematical
problems.
• CO3: Analyze the variables within/import into workspace
of software through plots and display devices.
• CO4 :Analyze the results and analysis of the experiments
through reports.
LIST OF EXPERIMENTS
1. Components of computational software and
tool boxes
2. Mathematical operations using arrays and
matrices.
3. Create and manipulate the variables for text and
numeric data types.
LIST OF EXPERIMENTS
4. Import and Export data as text files,
spreadsheets, other file formats and web
access.
5. Write basic programs using loops and
conditional statements, such as if, for,
and while.
6. Create variables within /import into Workspace
of software from data files or other programs.
LIST OF EXPERIMENTS
6. Solving Mathematical Functions using
simulation.
7. Write basic Programs in Scripts containing
sequence of commands and functions.
8. Create 2D,3D plots and display it in graphical
window
LIST OF EXPERIMENTS
10.Program to Read, Display and plot Image using
open CV Library
11.Conversion of original image to Gray scale
image and binary image.
12.Solving Matrices and Vectors problems using
SCILAB.
MATLAB
• an abbreviation of "matrix laboratory”
• MATLAB (an abbreviation of "matrix laboratory")
is a proprietary multi-paradigm
programming language and numerical
computing environment developed by
MathWorks.
What Is MATLAB?
• MATLAB is a high-performance language for
technical computing.
• It integrates computation, visualization, and
programming in an easy-to-use environment
• where problems and solutions are expressed in
familiar mathematical notation.
Typical uses include:
• Math and computation
• Algorithm development
• Modeling, simulation, and prototyping
• Data analysis, exploration, and visualization
• Scientific and engineering graphics
• Application development, including Graphical
User Interface building
MATLAB
• MATLAB is an interactive system whose basic
data element is an array that does not require
dimensioning.
• This allows you to solve many technical
computing problems, especially those with
matrix and vector formulations, in a fraction of
the time it would take to write a program in a
scalar non interactive language such as C or
Fortran.
The MATLAB System
• The MATLAB system consists of five main parts:
• The MATLAB language
• The MATLAB working environment
• Handle Graphics.
• The MATLAB mathematical function library
• The MATLAB Application Program Interface
(API)
The MATLAB language
• This is a high-level matrix/array language with
control flow statements, functions, data
structures, input/output, and object-oriented
programming features.
The MATLAB working environment
• This is the set of tools and facilities that you work
with as the MATLAB user or programmer. It
includes facilities for managing the variables in
your workspace and importing and exporting
data.
• It also includes tools for developing, managing,
debugging, and profiling M-files, MATLAB's
applications.
Handle Graphics
• This is the MATLAB graphics system. It includes
high-level commands for two-dimensional and
three-dimensional data visualization, image
processing, animation, and presentation
graphics.
• It also includes low-level commands that allow
you to fully customize the appearance of
graphics as well as to build complete Graphical
User Interfaces on your MATLAB applications
Graphs
The MATLAB mathematical function library
• This is a vast collection of computational
algorithms ranging from elementary functions
like,
• sum, sine, cosine, and complex arithmetic, to
more sophisticated functions like,
• matrix inverse, matrix eigenvalues, Bessel
functions, and fast Fourier transforms.
The MATLAB Application Program Interface
(API)
• This is a library that allows you to write C and
Fortran programs that interact with MATLAB.
• It include facilities for calling routines from
MATLAB (dynamic linking), calling MATLAB as a
computational engine, and for reading and
writing MAT-files.
Applications
• Signal Processing and Communications
• Image and Video Processing
• Control Systems
• Test and Measurement
• Computational Finance
• Computational Biology
Local Environment Setup
• Setting up MATLAB environment is a matter of
few clicks. The installer can be downloaded.
• MathWorks provides the licensed product, a trial
version and a student version as well. You need
to log into the site and wait a little for their
approval.
• After downloading the installer the software can
be installed through few clicks.
…contd
Understanding the MATLAB Environment
• MATLAB development IDE can be launched from
the icon created on the desktop.
• The main working window in MATLAB is called
the desktop. When MATLAB is started, the
desktop appears in its default layout
…contd
• The desktop has the following panels −
• Current Folder − This panel allows you to access
the project folders and files.
• Command Window − This is the main area
where commands can be entered at the
command line. It is indicated by the command
prompt (>>).
• Workspace − The workspace shows all the
variables created and/or imported from files.
• Command History − This panel shows or return
commands that are entered at the command
line.
Use of Semicolon (;) in MATLAB
• Semicolon (;) indicates end of statement.
However, if you want to suppress and hide the
MATLAB output for an expression, add a
semicolon after the expression.
• For example,
• x = 3; y = x + 5
• When you click the Execute button, or type
Ctrl+E, MATLAB executes it immediately and the
result returned is −
• y = 8
Adding Comments
• The percent symbol (%) is used for indicating a
comment line. For example,
• x = 9 % assign the value 9 to x
• You can also write a block of comments using the
block comment operators % { and % }.
Commonly used Operators and Special
Characters
• + Plus; addition operator.
• - Minus; subtraction operator.
• * Scalar and matrix multiplication operator.
• .* Array multiplication operator.
• ^ Scalar and matrix exponentiation operator.
• .^ Array exponentiation operator.
•  Left-division operator.
..contd
• / Right-division operator.
• . Array left-division operator.
• ./ Array right-division operator.
• : Colon; generates regularly spaced elements
and represents an entire row or column.
• ( ) Parentheses; encloses function arguments
and array indices; overrides precedence.
• [ ] Brackets; enclosures array elements.
• . Decimal point.
• … Ellipsis; line-continuation operator
• , Comma; separates statements and elements
in a row
• ; Semicolon; separates columns and
suppresses display.
• % Percent sign; designates a comment and
specifies formatting.
• _Quote sign and transpose
• ._Nonconjugated transpose
• =Assignment operator.
Special Variables and Constants
• ans - Most recent answer.
• eps - Accuracy of floating-point precision.
• i,j -The imaginary unit √-1.
• Inf - Infinity.
• NaN - Undefined numerical result (not a
number).
• pi -The number π
Case -Sensitive
•MATLAB is case-sensitive.
….contd
• Variable names can be of any length, however,
MATLAB uses only first N characters,
• where N is given by the unction namelengthmax.
Saving Your Work
• The save command is used for saving all the
variables in the workspace, as a file with .mat
extension, in the current directory.
Commands
• clc Clears command window.
• clear Removes variables from memory.
• exist Checks for existence of file or variable.
• global Declares variables to be global.
• help Searches for a help topic.
• lookfor Searches help entries for a keyword.
• quit Stops MATLAB.
• who Lists current variables.
• whos Lists current variables (long display).
Input and Output Commands
• disp Displays contents of an array or string.
• fscanf Read formatted data from a file.
• format Controls screen-display format.
• fprintf Performs formatted writes to screen or
file.
• input Displays prompts and waits for input.
• ; Suppresses screen printing.
• %s Format as a string.
• %d Format as an integer.
• %f Format as a floating point value.
• %e Format as a floating point value in scientific
notation.
• %g Format in the most compact form: %f or %e.
• n Insert a new line in the output string.
• t Insert a tab in the output string.
• The format function has the following forms used
for numeric display −
• format short Four decimal digits (default).
• format long 16 decimal digits.
• format short eFive digits plus exponent.
• format long e 16 digits plus exponents.
• format bank Two decimal digits.
• format + Positive, negative, or zero.
• format rat Rational approximation.
Vector, Matrix and Array Commands
• cat Concatenates arrays.
• find Finds indices of nonzero elements.
• length Computes number of elements.
• linspace Creates regularly spaced vector.
• logspaceCreates logarithmically spaced vector.
• max Returns largest element.
…contd
• min Returns smallest element.
• prod Product of each column.
• reshape Changes size.
• size Computes array size.
• sort Sorts each column.
• sum Sums each column.
• eye Creates an identity matrix.
….contd
• ones Creates an array of ones.
• zeros Creates an array of zeros.
• cross Computes matrix cross products.
• dotComputes matrix dot products.
• detComputes determinant of an array.
• inv Computes inverse of a matrix.
• pinv Computes pseudoinverse of a matrix.
• rank Computes rank of a matrix.
• rref Computes reduced row echelon form.
• cellCreates cell array.
• celldisp Displays cell array.
• cellplot Displays graphical representation of cell
array.
• num2cell Converts numeric array to cell
array.
• deal Matches input and output lists.
• iscell Identifies cell array.
Plotting Commands
• axis Sets axis limits.
• fplot Intelligent plotting of functions.
• grid Displays gridlines.
• plot Generates xy plot.
• print Prints plot or saves plot to a file.
• title Puts text at top of plot.
• xlabel Adds text label to x-axis.
• ylabel Adds text label to y-axis.
The M Files
• MATLAB allows writing two kinds of program files
• Scripts − script files are program files with .m
extension.
• In these files, you write series of commands,
which you want to execute together. Scripts do
not accept inputs and do not return any outputs.
They operate on data in the workspace.
• Functions − functions files are also program files
with .m extension. Functions can accept inputs
and return outputs. Internal variables are local to
the function.
THANK YOU

More Related Content

What's hot

Machine learning
Machine learningMachine learning
Machine learning
ADARSHMISHRA126
 
1.Introduction to deep learning
1.Introduction to deep learning1.Introduction to deep learning
1.Introduction to deep learning
KONGU ENGINEERING COLLEGE
 
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Universitat Politècnica de Catalunya
 
Machine learning seminar ppt
Machine learning seminar pptMachine learning seminar ppt
Machine learning seminar ppt
RAHUL DANGWAL
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
Charles Deledalle
 
House price prediction
House price predictionHouse price prediction
House price prediction
AdityaKumar1505
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
Shrey Malik
 
[Mmlab seminar 2016] deep learning for human pose estimation
[Mmlab seminar 2016] deep learning for human pose estimation[Mmlab seminar 2016] deep learning for human pose estimation
[Mmlab seminar 2016] deep learning for human pose estimation
Wei Yang
 
Memory Efficient Graph Convolutional Network based Distributed Link Prediction
Memory Efficient Graph Convolutional Network based Distributed Link PredictionMemory Efficient Graph Convolutional Network based Distributed Link Prediction
Memory Efficient Graph Convolutional Network based Distributed Link Prediction
miyurud
 
Machine Learning
Machine Learning Machine Learning
Machine Learning
Dhananjay Birmole
 
[PR12] Inception and Xception - Jaejun Yoo
[PR12] Inception and Xception - Jaejun Yoo[PR12] Inception and Xception - Jaejun Yoo
[PR12] Inception and Xception - Jaejun Yoo
JaeJun Yoo
 
Lecture 9 Perceptron
Lecture 9 PerceptronLecture 9 Perceptron
Lecture 9 Perceptron
Marina Santini
 
Activation functions and Training Algorithms for Deep Neural network
Activation functions and Training Algorithms for Deep Neural networkActivation functions and Training Algorithms for Deep Neural network
Activation functions and Training Algorithms for Deep Neural network
Gayatri Khanvilkar
 
Neural Networks and Deep Learning
Neural Networks and Deep LearningNeural Networks and Deep Learning
Neural Networks and Deep Learning
Asim Jalis
 
Machine Learning in Education
Machine Learning in EducationMachine Learning in Education
Machine Learning in Education
Sercan Degirmenci
 
Machine Learning Deep Learning AI and Data Science
Machine Learning Deep Learning AI and Data Science Machine Learning Deep Learning AI and Data Science
Machine Learning Deep Learning AI and Data Science
Venkata Reddy Konasani
 
Churn prediction
Churn predictionChurn prediction
Churn prediction
Gigi Lino
 
Machine learning and types
Machine learning and typesMachine learning and types
Machine learning and types
Padma Metta
 
Single Layer Rosenblatt Perceptron
Single Layer Rosenblatt PerceptronSingle Layer Rosenblatt Perceptron
Single Layer Rosenblatt Perceptron
AndriyOleksiuk
 
[Webinar Deck] Google Data Studio for Mastering the Art of Data Visualizations
[Webinar Deck] Google Data Studio for Mastering the Art of Data Visualizations[Webinar Deck] Google Data Studio for Mastering the Art of Data Visualizations
[Webinar Deck] Google Data Studio for Mastering the Art of Data Visualizations
Tatvic Analytics
 

What's hot (20)

Machine learning
Machine learningMachine learning
Machine learning
 
1.Introduction to deep learning
1.Introduction to deep learning1.Introduction to deep learning
1.Introduction to deep learning
 
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
 
Machine learning seminar ppt
Machine learning seminar pptMachine learning seminar ppt
Machine learning seminar ppt
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
House price prediction
House price predictionHouse price prediction
House price prediction
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
[Mmlab seminar 2016] deep learning for human pose estimation
[Mmlab seminar 2016] deep learning for human pose estimation[Mmlab seminar 2016] deep learning for human pose estimation
[Mmlab seminar 2016] deep learning for human pose estimation
 
Memory Efficient Graph Convolutional Network based Distributed Link Prediction
Memory Efficient Graph Convolutional Network based Distributed Link PredictionMemory Efficient Graph Convolutional Network based Distributed Link Prediction
Memory Efficient Graph Convolutional Network based Distributed Link Prediction
 
Machine Learning
Machine Learning Machine Learning
Machine Learning
 
[PR12] Inception and Xception - Jaejun Yoo
[PR12] Inception and Xception - Jaejun Yoo[PR12] Inception and Xception - Jaejun Yoo
[PR12] Inception and Xception - Jaejun Yoo
 
Lecture 9 Perceptron
Lecture 9 PerceptronLecture 9 Perceptron
Lecture 9 Perceptron
 
Activation functions and Training Algorithms for Deep Neural network
Activation functions and Training Algorithms for Deep Neural networkActivation functions and Training Algorithms for Deep Neural network
Activation functions and Training Algorithms for Deep Neural network
 
Neural Networks and Deep Learning
Neural Networks and Deep LearningNeural Networks and Deep Learning
Neural Networks and Deep Learning
 
Machine Learning in Education
Machine Learning in EducationMachine Learning in Education
Machine Learning in Education
 
Machine Learning Deep Learning AI and Data Science
Machine Learning Deep Learning AI and Data Science Machine Learning Deep Learning AI and Data Science
Machine Learning Deep Learning AI and Data Science
 
Churn prediction
Churn predictionChurn prediction
Churn prediction
 
Machine learning and types
Machine learning and typesMachine learning and types
Machine learning and types
 
Single Layer Rosenblatt Perceptron
Single Layer Rosenblatt PerceptronSingle Layer Rosenblatt Perceptron
Single Layer Rosenblatt Perceptron
 
[Webinar Deck] Google Data Studio for Mastering the Art of Data Visualizations
[Webinar Deck] Google Data Studio for Mastering the Art of Data Visualizations[Webinar Deck] Google Data Studio for Mastering the Art of Data Visualizations
[Webinar Deck] Google Data Studio for Mastering the Art of Data Visualizations
 

Similar to Simulation lab

Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
VidhyaSenthil
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
Ravibabu Kancharla
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
ideas2ignite
 
Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4
Randa Elanwar
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
محمدعبد الحى
 
How to work on Matlab.......
How to work on Matlab.......How to work on Matlab.......
How to work on Matlab.......biinoida
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
SusieMaestre1
 
MATLAB Assignment Help
MATLAB Assignment HelpMATLAB Assignment Help
MATLAB Assignment Help
Essay Corp
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to Compilers
vijaya603274
 
From zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyondFrom zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyond
MahuaPal6
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
Arshit Rai
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
Arshit Rai
 
Problem-solving and design 1.pptx
Problem-solving and design 1.pptxProblem-solving and design 1.pptx
Problem-solving and design 1.pptx
TadiwaMawere
 
PROGRAMMING IN C - SARASWATHI RAMALINGAM
PROGRAMMING IN C - SARASWATHI RAMALINGAMPROGRAMMING IN C - SARASWATHI RAMALINGAM
PROGRAMMING IN C - SARASWATHI RAMALINGAM
SaraswathiRamalingam
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
Ameen San
 
Summer training introduction to matlab
Summer training  introduction to matlabSummer training  introduction to matlab
Summer training introduction to matlab
Arshit Rai
 
++Matlab 14 sesiones
++Matlab 14 sesiones++Matlab 14 sesiones
++Matlab 14 sesiones
Rosemberth Rodriguez
 

Similar to Simulation lab (20)

Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
 
Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
 
How to work on Matlab.......
How to work on Matlab.......How to work on Matlab.......
How to work on Matlab.......
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
 
MATLAB Assignment Help
MATLAB Assignment HelpMATLAB Assignment Help
MATLAB Assignment Help
 
Matlab tut2
Matlab tut2Matlab tut2
Matlab tut2
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to Compilers
 
From zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyondFrom zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyond
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Matlab summary
Matlab summaryMatlab summary
Matlab summary
 
Problem-solving and design 1.pptx
Problem-solving and design 1.pptxProblem-solving and design 1.pptx
Problem-solving and design 1.pptx
 
PROGRAMMING IN C - SARASWATHI RAMALINGAM
PROGRAMMING IN C - SARASWATHI RAMALINGAMPROGRAMMING IN C - SARASWATHI RAMALINGAM
PROGRAMMING IN C - SARASWATHI RAMALINGAM
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Chap6
Chap6Chap6
Chap6
 
Summer training introduction to matlab
Summer training  introduction to matlabSummer training  introduction to matlab
Summer training introduction to matlab
 
++Matlab 14 sesiones
++Matlab 14 sesiones++Matlab 14 sesiones
++Matlab 14 sesiones
 

Recently uploaded

Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
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
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
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
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
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
 
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
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
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
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 

Recently uploaded (20)

Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
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
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
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
 
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
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
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
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 

Simulation lab

  • 1. 1 SRI RAMAKRISHNA ENGINEERING COLLEGE [Educational Service: SNR Sons Charitable Trust] [Autonomous Institution, Accredited by NAAC with ‘A’ Grade] [Approved by AICTE and Permanently Affiliated to Anna University, Chennai] [ISO 9001:2015 Certified and all eligible programmes Accredited by NBA] Vattamalaipalayam, N.G.G.O. Colony Post, Coimbatore – 641 022. Course Instructors: Dr. M.EZHILARASI, AP/EEE No. of Credits: 3 Department of Electrical and Electronics Engineering 20EI271 – SIMULATION LABORATORY
  • 2. Course Outcomes On successful completion of the course, students will be able to • CO1 : Outline the features of mathematical functions using computational software. • CO2: Develop a code utilizing basic commands and functions of simulation software to solve mathematical problems. • CO3: Analyze the variables within/import into workspace of software through plots and display devices. • CO4 :Analyze the results and analysis of the experiments through reports.
  • 3. LIST OF EXPERIMENTS 1. Components of computational software and tool boxes 2. Mathematical operations using arrays and matrices. 3. Create and manipulate the variables for text and numeric data types.
  • 4. LIST OF EXPERIMENTS 4. Import and Export data as text files, spreadsheets, other file formats and web access. 5. Write basic programs using loops and conditional statements, such as if, for, and while. 6. Create variables within /import into Workspace of software from data files or other programs.
  • 5. LIST OF EXPERIMENTS 6. Solving Mathematical Functions using simulation. 7. Write basic Programs in Scripts containing sequence of commands and functions. 8. Create 2D,3D plots and display it in graphical window
  • 6. LIST OF EXPERIMENTS 10.Program to Read, Display and plot Image using open CV Library 11.Conversion of original image to Gray scale image and binary image. 12.Solving Matrices and Vectors problems using SCILAB.
  • 7. MATLAB • an abbreviation of "matrix laboratory” • MATLAB (an abbreviation of "matrix laboratory") is a proprietary multi-paradigm programming language and numerical computing environment developed by MathWorks.
  • 8. What Is MATLAB? • MATLAB is a high-performance language for technical computing. • It integrates computation, visualization, and programming in an easy-to-use environment • where problems and solutions are expressed in familiar mathematical notation.
  • 9. Typical uses include: • Math and computation • Algorithm development • Modeling, simulation, and prototyping • Data analysis, exploration, and visualization • Scientific and engineering graphics • Application development, including Graphical User Interface building
  • 10. MATLAB • MATLAB is an interactive system whose basic data element is an array that does not require dimensioning. • This allows you to solve many technical computing problems, especially those with matrix and vector formulations, in a fraction of the time it would take to write a program in a scalar non interactive language such as C or Fortran.
  • 11. The MATLAB System • The MATLAB system consists of five main parts: • The MATLAB language • The MATLAB working environment • Handle Graphics. • The MATLAB mathematical function library • The MATLAB Application Program Interface (API)
  • 12. The MATLAB language • This is a high-level matrix/array language with control flow statements, functions, data structures, input/output, and object-oriented programming features.
  • 13. The MATLAB working environment • This is the set of tools and facilities that you work with as the MATLAB user or programmer. It includes facilities for managing the variables in your workspace and importing and exporting data. • It also includes tools for developing, managing, debugging, and profiling M-files, MATLAB's applications.
  • 14. Handle Graphics • This is the MATLAB graphics system. It includes high-level commands for two-dimensional and three-dimensional data visualization, image processing, animation, and presentation graphics. • It also includes low-level commands that allow you to fully customize the appearance of graphics as well as to build complete Graphical User Interfaces on your MATLAB applications
  • 16. The MATLAB mathematical function library • This is a vast collection of computational algorithms ranging from elementary functions like, • sum, sine, cosine, and complex arithmetic, to more sophisticated functions like, • matrix inverse, matrix eigenvalues, Bessel functions, and fast Fourier transforms.
  • 17. The MATLAB Application Program Interface (API) • This is a library that allows you to write C and Fortran programs that interact with MATLAB. • It include facilities for calling routines from MATLAB (dynamic linking), calling MATLAB as a computational engine, and for reading and writing MAT-files.
  • 18. Applications • Signal Processing and Communications • Image and Video Processing • Control Systems • Test and Measurement • Computational Finance • Computational Biology
  • 19. Local Environment Setup • Setting up MATLAB environment is a matter of few clicks. The installer can be downloaded. • MathWorks provides the licensed product, a trial version and a student version as well. You need to log into the site and wait a little for their approval. • After downloading the installer the software can be installed through few clicks.
  • 21.
  • 22. Understanding the MATLAB Environment • MATLAB development IDE can be launched from the icon created on the desktop. • The main working window in MATLAB is called the desktop. When MATLAB is started, the desktop appears in its default layout
  • 24. • The desktop has the following panels − • Current Folder − This panel allows you to access the project folders and files.
  • 25. • Command Window − This is the main area where commands can be entered at the command line. It is indicated by the command prompt (>>).
  • 26. • Workspace − The workspace shows all the variables created and/or imported from files.
  • 27. • Command History − This panel shows or return commands that are entered at the command line.
  • 28. Use of Semicolon (;) in MATLAB • Semicolon (;) indicates end of statement. However, if you want to suppress and hide the MATLAB output for an expression, add a semicolon after the expression. • For example, • x = 3; y = x + 5 • When you click the Execute button, or type Ctrl+E, MATLAB executes it immediately and the result returned is − • y = 8
  • 29. Adding Comments • The percent symbol (%) is used for indicating a comment line. For example, • x = 9 % assign the value 9 to x • You can also write a block of comments using the block comment operators % { and % }.
  • 30. Commonly used Operators and Special Characters • + Plus; addition operator. • - Minus; subtraction operator. • * Scalar and matrix multiplication operator. • .* Array multiplication operator. • ^ Scalar and matrix exponentiation operator. • .^ Array exponentiation operator. • Left-division operator.
  • 31. ..contd • / Right-division operator. • . Array left-division operator. • ./ Array right-division operator. • : Colon; generates regularly spaced elements and represents an entire row or column. • ( ) Parentheses; encloses function arguments and array indices; overrides precedence.
  • 32. • [ ] Brackets; enclosures array elements. • . Decimal point. • … Ellipsis; line-continuation operator • , Comma; separates statements and elements in a row • ; Semicolon; separates columns and suppresses display. • % Percent sign; designates a comment and specifies formatting.
  • 33. • _Quote sign and transpose • ._Nonconjugated transpose • =Assignment operator.
  • 34. Special Variables and Constants • ans - Most recent answer. • eps - Accuracy of floating-point precision. • i,j -The imaginary unit √-1. • Inf - Infinity. • NaN - Undefined numerical result (not a number). • pi -The number π
  • 35. Case -Sensitive •MATLAB is case-sensitive.
  • 36. ….contd • Variable names can be of any length, however, MATLAB uses only first N characters, • where N is given by the unction namelengthmax.
  • 37. Saving Your Work • The save command is used for saving all the variables in the workspace, as a file with .mat extension, in the current directory.
  • 38. Commands • clc Clears command window. • clear Removes variables from memory. • exist Checks for existence of file or variable. • global Declares variables to be global. • help Searches for a help topic. • lookfor Searches help entries for a keyword. • quit Stops MATLAB. • who Lists current variables. • whos Lists current variables (long display).
  • 39. Input and Output Commands • disp Displays contents of an array or string. • fscanf Read formatted data from a file. • format Controls screen-display format. • fprintf Performs formatted writes to screen or file. • input Displays prompts and waits for input. • ; Suppresses screen printing.
  • 40. • %s Format as a string. • %d Format as an integer. • %f Format as a floating point value. • %e Format as a floating point value in scientific notation. • %g Format in the most compact form: %f or %e. • n Insert a new line in the output string. • t Insert a tab in the output string.
  • 41. • The format function has the following forms used for numeric display − • format short Four decimal digits (default). • format long 16 decimal digits. • format short eFive digits plus exponent. • format long e 16 digits plus exponents. • format bank Two decimal digits. • format + Positive, negative, or zero. • format rat Rational approximation.
  • 42. Vector, Matrix and Array Commands • cat Concatenates arrays. • find Finds indices of nonzero elements. • length Computes number of elements. • linspace Creates regularly spaced vector. • logspaceCreates logarithmically spaced vector. • max Returns largest element.
  • 43. …contd • min Returns smallest element. • prod Product of each column. • reshape Changes size. • size Computes array size. • sort Sorts each column. • sum Sums each column. • eye Creates an identity matrix.
  • 44. ….contd • ones Creates an array of ones. • zeros Creates an array of zeros. • cross Computes matrix cross products. • dotComputes matrix dot products. • detComputes determinant of an array. • inv Computes inverse of a matrix.
  • 45. • pinv Computes pseudoinverse of a matrix. • rank Computes rank of a matrix. • rref Computes reduced row echelon form. • cellCreates cell array. • celldisp Displays cell array.
  • 46. • cellplot Displays graphical representation of cell array. • num2cell Converts numeric array to cell array. • deal Matches input and output lists. • iscell Identifies cell array.
  • 47. Plotting Commands • axis Sets axis limits. • fplot Intelligent plotting of functions. • grid Displays gridlines. • plot Generates xy plot. • print Prints plot or saves plot to a file. • title Puts text at top of plot. • xlabel Adds text label to x-axis. • ylabel Adds text label to y-axis.
  • 48. The M Files • MATLAB allows writing two kinds of program files • Scripts − script files are program files with .m extension. • In these files, you write series of commands, which you want to execute together. Scripts do not accept inputs and do not return any outputs. They operate on data in the workspace.
  • 49. • Functions − functions files are also program files with .m extension. Functions can accept inputs and return outputs. Internal variables are local to the function.