SlideShare a Scribd company logo
Introduction and Basics
 The MATLAB stands for Matrix Laboratory. It is a tool to
perform mathematical complex computations. In
MATLAB, simplified C is used as the programming
language. The MATLAB has various inbuilt toolboxes
and these toolboxes are mathematical toolbox, drag
and drop based GUI, Image processing, Neural
networks etc. The MATLAB is generally used to
implement algorithms, plotting graphs and design user
interfaces. MATLAB is used to simulate networks due
to availability of high graphics.
Following are the main components of default MATLAB
interface:
 Command Window - The Command Window is the first
important part of MATLAB which is used to show
output of already saved code and to execute MATLAB
codes temporarily.
 Workspace - The workspace is the second part of
MATLAB which is used to show allocation and
reallocation of MATLAB variables.
 Command History - The command history is the third
part of MATLAB in which MATLAB commands are
shown which are executed previously.
 Current Folder Path - The current Folder path shows
that path of the folder in which MATLAB codes are
saved.
 Current Folder Data - The Current Folder Data shows
that data which is in the folders whose path is given in
Current Folder Path.
There are three commonly used commands in
MATLAB:
 CLC – This command is used to clear all input and
output from display window.
 Clear All – This command is used to clear all objects
from workspace.
 Close All – This command is used to close all the
interfaces and return to the default interface.
Here are the main features of MATLAB;
o MATLAB is a high-level language used for complex
numerical based computations, visualization, and for
the development of different applications.
o For exploration and solving problems, MATLAB
provides an open-end environment.
o MATLAB provides tools for to build applications using
custom graphical interfaces.
 MATLAB provides an extensive library of certain
mathematical functions to perform operations on
Linear Algebra, Fourier series, statistics, and for
other mathematical computations.
 For improving code quality, MATLAB provides certain
development tools along with built-in graphics for
data visualization.
 MATLAB can be integrated with external applications
and programming languages like C, Java.
 For working with basics of MATLAB, firstly you have
to setup the MATLAB environment on your system.
After the MATLAB environment is set, you can
execute commands after >> operator.
 Example:
Enter an expression like 10 + 10 and then press enter.
MATLAB will execute this expression and return the
result as:
ans = 10
 Semicolon in MATLAB - Semicolon is used as a terminating
point of the statement.
Example:
x = 7;
y = x + 8
MATLAB will return the answer as:
y = 15
 Comments in MATLAB - Comments can be added in
MATLAB using symbol %
Example:
y = 5 % value 5 is assigned to y
There are some special variables and constants
used in MATLAB:
Ans – For most recent answer
Inf – To indicate infinity
Eps – To depict accuracy of floating point
precision
NaN – For undefined numerical result
I,j – Represent imaginary unit
There are various commands used in MATLAB. Following
are some of the commonly used commands in
MATLAB:
o cd – To change current directory
o dir – To list all files in a current directory
o what – To list all MATLAB files
o format – To control format of the display screen
o fsanf – To read formatted data from a file
o fprintf – To perform formatted write to a file
 lookfor – To search help for a keyword
 cat – To concatenate arrays
 prod – To find product of each column
 eye – To create an identity matrix
 num2cell – To convert numeric array to cell array
There are two types of program files in MATLAB:
 Scripts
 Functions
 Scripts - In these types of program files, series of
commands are written which are required to be
executed together.
 Functions - Unlike script files, function files accept
inputs to return output.
Following are the different types of operators used in
MATLAB:
 Arithmetic Operators
 Relational Operators
 Logical Operators
 Bitwise Operators
 Set Operators
 Arithmetic Operators - Arithmetic Operators include
the operators used in linear algebra including +, -, *, /,
^. Arithmetic Operators also include Array and Matrix
arithmetic operators.
 Relational Operators - Following are the types of
relational operators used:
Less than – <
Greater than – >
Less than or equal to – <=
Greater than or equal to – >=
Equal to – ==
Not equal to – ~=
 Logical Operators - There are two types of logical
operators used in MATLAB:
Element-wise – To perform operations on elements of
logical arrays
Short-Circuit wise – For operation on scalar and logical
expressions
 Bitwise Operators - These operators are used to
perform bitwise operations on bits and work bit-by-bit
using truth table for operations.
 Set Operators - These operators perform functions like
union, intersection, and testing.
There are three types of loops used in MATLAB along
with two loop control statements:
 While loop
 For loop
 Nested loop
Loop Control Statements:
 Break
 Continue
 MATLAB is used to evaluate a large amount of data
collected using computers and other such appliances.
 MATLAB finds its application in signal processing and
communication.
 MATLAB is used to perform complex matrix operations
which is useful in case of image and video processing.
 Matlab provides certain graphical and statistical
functions along with our such interesting features
which makes it popular for a wide range of use.
 Matlab is used in computational biology and
computational finance.
 Being an interpreted language, Matlab is easy to use.
 Matlab provides built-in integrated development
environment using which programs can be written
easily.
 Matlab is platform independent in the sense that it can
run on different platforms.
 Matlab has a vast library of predefined functions that
provide solutions to various technical problems.
 The main disadvantage of Matlab is that it is an
interpreted language which means that it takes more
time to execute than other compiled languages i.e. its
execution speed is slow.
 The second disadvantage is the cost. It is expensive
than the regular C or Fortran compiler. Therefore,
individuals find it expensive to purchase.
 Techsparks
Techsparks, 2nd floor, D-185, Phase 8B, Industrial Area,
Sahibzada Ajit Singh Nagar, Mohali, Punjab 160055
+91-9465330425
techsparks2013@gmail.com
http://www.techsparks.co.in

More Related Content

What's hot

Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
Daniel Moore
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
ideas2ignite
 
Brief Introduction to Matlab
Brief  Introduction to MatlabBrief  Introduction to Matlab
Brief Introduction to Matlab
Tariq kanher
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd Esa
Mohd Esa
 
Importance of matlab
Importance of matlabImportance of matlab
Importance of matlab
krajeshk1980
 
Matlab-fundamentals of matlab-2
Matlab-fundamentals of matlab-2Matlab-fundamentals of matlab-2
Matlab-fundamentals of matlab-2
Narendra Kumar Jangid
 
Matlab-fundamentals of matlab-1
Matlab-fundamentals of matlab-1Matlab-fundamentals of matlab-1
Matlab-fundamentals of matlab-1
Narendra Kumar Jangid
 
Matlab intro
Matlab introMatlab intro
Matlab intro
Chaitanya Banoth
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
Damian T. Gordon
 
Matlab practical and lab session
Matlab practical and lab sessionMatlab practical and lab session
Matlab practical and lab sessionDr. Krishna Mohbey
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
Tarun Gehlot
 
MATLAB INTRODUCTION
MATLAB INTRODUCTIONMATLAB INTRODUCTION
MATLAB INTRODUCTION
Dr. Krishna Mohbey
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
Bhavesh Shah
 
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
 
Advanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsAdvanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & Scientists
Ray Phan
 
Matlab Overviiew
Matlab OverviiewMatlab Overviiew
Matlab Overviiew
Nazim Naeem
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
Amr Rashed
 
Fundamentals of matlab
Fundamentals of matlabFundamentals of matlab
Fundamentals of matlab
Narendra Kumar Jangid
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)
Memo Love
 

What's hot (20)

Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
 
Brief Introduction to Matlab
Brief  Introduction to MatlabBrief  Introduction to Matlab
Brief Introduction to Matlab
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd Esa
 
Importance of matlab
Importance of matlabImportance of matlab
Importance of matlab
 
Matlab-fundamentals of matlab-2
Matlab-fundamentals of matlab-2Matlab-fundamentals of matlab-2
Matlab-fundamentals of matlab-2
 
Matlab-fundamentals of matlab-1
Matlab-fundamentals of matlab-1Matlab-fundamentals of matlab-1
Matlab-fundamentals of matlab-1
 
Matlab intro
Matlab introMatlab intro
Matlab intro
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Matlab practical and lab session
Matlab practical and lab sessionMatlab practical and lab session
Matlab practical and lab session
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
MATLAB INTRODUCTION
MATLAB INTRODUCTIONMATLAB INTRODUCTION
MATLAB INTRODUCTION
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
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
 
Advanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsAdvanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & Scientists
 
Matlab Overviiew
Matlab OverviiewMatlab Overviiew
Matlab Overviiew
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
 
Fundamentals of matlab
Fundamentals of matlabFundamentals of matlab
Fundamentals of matlab
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)
 
What is matlab
What is matlabWhat is matlab
What is matlab
 

Similar to Matlab - Introduction and Basics

Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Ahmed Gad
 
communication system.docx
communication system.docxcommunication system.docx
communication system.docx
MuhammadUsman627082
 
All About MATLAB
All About MATLABAll About MATLAB
All About MATLAB
Multisoft Virtual Academy
 
++Matlab 14 sesiones
++Matlab 14 sesiones++Matlab 14 sesiones
++Matlab 14 sesiones
Rosemberth Rodriguez
 
Summer training introduction to matlab
Summer training  introduction to matlabSummer training  introduction to matlab
Summer training introduction to matlab
Arshit Rai
 
Introduction to Matlab for Engineering Students.pdf
Introduction to Matlab for Engineering Students.pdfIntroduction to Matlab for Engineering Students.pdf
Introduction to Matlab for Engineering Students.pdf
DrAzizulHasan1
 
Something about matlab, tool matlab, software.pptx
Something about matlab, tool matlab, software.pptxSomething about matlab, tool matlab, software.pptx
Something about matlab, tool matlab, software.pptx
JahanzebSuhriani1
 
Kevin merchantss
Kevin merchantssKevin merchantss
Kevin merchantss
dharmesh69
 
KEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENTKEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENT
tejas1235
 
MATLAB Assignment Help
MATLAB Assignment HelpMATLAB Assignment Help
MATLAB Assignment Help
Essay Corp
 
Basics of matlab i
Basics of matlab iBasics of matlab i
Basics of matlab i
ssusera9e62b
 
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
ssuserdee4d8
 
EE6711 Power System Simulation Lab manual
EE6711 Power System Simulation Lab manualEE6711 Power System Simulation Lab manual
EE6711 Power System Simulation Lab manual
Velalar College of Engineering and Technology
 
MATLAB'S PRESENTS1.pptx
MATLAB'S  PRESENTS1.pptxMATLAB'S  PRESENTS1.pptx
MATLAB'S PRESENTS1.pptx
NikhilPadole5
 
Summer training in matlab
Summer training in matlabSummer training in matlab
Summer training in matlab
Arshit Rai
 
Introduction to Matlab for finance-Modrika
Introduction to Matlab for finance-ModrikaIntroduction to Matlab for finance-Modrika
Introduction to Matlab for finance-Modrika
MODRIKA
 
Introduction of Matlab
Introduction of Matlab Introduction of Matlab
Introduction of Matlab
TAYYAB UL ISLAM
 

Similar to Matlab - Introduction and Basics (20)

Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
 
communication system.docx
communication system.docxcommunication system.docx
communication system.docx
 
All About MATLAB
All About MATLABAll About MATLAB
All About MATLAB
 
++Matlab 14 sesiones
++Matlab 14 sesiones++Matlab 14 sesiones
++Matlab 14 sesiones
 
Summer training introduction to matlab
Summer training  introduction to matlabSummer training  introduction to matlab
Summer training introduction to matlab
 
Introduction to Matlab for Engineering Students.pdf
Introduction to Matlab for Engineering Students.pdfIntroduction to Matlab for Engineering Students.pdf
Introduction to Matlab for Engineering Students.pdf
 
Something about matlab, tool matlab, software.pptx
Something about matlab, tool matlab, software.pptxSomething about matlab, tool matlab, software.pptx
Something about matlab, tool matlab, software.pptx
 
Kevin merchantss
Kevin merchantssKevin merchantss
Kevin merchantss
 
KEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENTKEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENT
 
MATLAB Assignment Help
MATLAB Assignment HelpMATLAB Assignment Help
MATLAB Assignment Help
 
Basics of matlab i
Basics of matlab iBasics of matlab i
Basics of matlab i
 
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
 
EE6711 Power System Simulation Lab manual
EE6711 Power System Simulation Lab manualEE6711 Power System Simulation Lab manual
EE6711 Power System Simulation Lab manual
 
An ntutorial[1]
An ntutorial[1]An ntutorial[1]
An ntutorial[1]
 
MATLAB'S PRESENTS1.pptx
MATLAB'S  PRESENTS1.pptxMATLAB'S  PRESENTS1.pptx
MATLAB'S PRESENTS1.pptx
 
Summer training in matlab
Summer training in matlabSummer training in matlab
Summer training in matlab
 
Introduction to Matlab for finance-Modrika
Introduction to Matlab for finance-ModrikaIntroduction to Matlab for finance-Modrika
Introduction to Matlab for finance-Modrika
 
Matlab tut2
Matlab tut2Matlab tut2
Matlab tut2
 
Matlab summary
Matlab summaryMatlab summary
Matlab summary
 
Introduction of Matlab
Introduction of Matlab Introduction of Matlab
Introduction of Matlab
 

More from Techsparks

Available Research Topics in Machine Learning
Available Research Topics in Machine LearningAvailable Research Topics in Machine Learning
Available Research Topics in Machine Learning
Techsparks
 
How to Complete your thesis fast.pdf
How to Complete your thesis fast.pdfHow to Complete your thesis fast.pdf
How to Complete your thesis fast.pdf
Techsparks
 
How to Plan Thesis on Computer Science.pdf
How to Plan Thesis on Computer Science.pdfHow to Plan Thesis on Computer Science.pdf
How to Plan Thesis on Computer Science.pdf
Techsparks
 
Latest IEEE base paper for CSE.pdf
Latest IEEE base paper for CSE.pdfLatest IEEE base paper for CSE.pdf
Latest IEEE base paper for CSE.pdf
Techsparks
 
Popular Thesis Topics in Networking
Popular Thesis Topics in NetworkingPopular Thesis Topics in Networking
Popular Thesis Topics in Networking
Techsparks
 
Significant Research Topics in Cloud Computing
Significant Research Topics in Cloud ComputingSignificant Research Topics in Cloud Computing
Significant Research Topics in Cloud Computing
Techsparks
 
Trending Topics in Machine Learning
Trending Topics in Machine LearningTrending Topics in Machine Learning
Trending Topics in Machine Learning
Techsparks
 
Masters thesis in assistance patna
Masters thesis in assistance patnaMasters thesis in assistance patna
Masters thesis in assistance patna
Techsparks
 
Software engineering - Topics and Research Areas
Software engineering - Topics and Research AreasSoftware engineering - Topics and Research Areas
Software engineering - Topics and Research Areas
Techsparks
 
Cloud computing and Cloud Security - Basics and Terminologies
Cloud computing and Cloud Security - Basics and TerminologiesCloud computing and Cloud Security - Basics and Terminologies
Cloud computing and Cloud Security - Basics and Terminologies
Techsparks
 
Data mining - Process, Techniques and Research Topics
Data mining - Process, Techniques and Research TopicsData mining - Process, Techniques and Research Topics
Data mining - Process, Techniques and Research Topics
Techsparks
 
How to write a thesis - Guidelines to Thesis Writing
How to write a thesis - Guidelines to Thesis WritingHow to write a thesis - Guidelines to Thesis Writing
How to write a thesis - Guidelines to Thesis Writing
Techsparks
 
Topics in digital communication
Topics in digital communicationTopics in digital communication
Topics in digital communication
Techsparks
 
Research paper writers in hyderabad
Research paper writers in hyderabadResearch paper writers in hyderabad
Research paper writers in hyderabad
Techsparks
 
Topics in wireless communication for project and thesis
Topics in wireless communication for project and thesisTopics in wireless communication for project and thesis
Topics in wireless communication for project and thesis
Techsparks
 
Masters thesis in assistance indore
Masters thesis in assistance indoreMasters thesis in assistance indore
Masters thesis in assistance indore
Techsparks
 
Big Data Hadoop
Big Data HadoopBig Data Hadoop
Big Data Hadoop
Techsparks
 
Master's thesis assistance jalandhar
Master's thesis assistance jalandharMaster's thesis assistance jalandhar
Master's thesis assistance jalandhar
Techsparks
 
How to get published in Scopus/ IEEE journals
How to get published in Scopus/ IEEE journalsHow to get published in Scopus/ IEEE journals
How to get published in Scopus/ IEEE journals
Techsparks
 
Topics in Networking for project and thesis
Topics in Networking for project and thesisTopics in Networking for project and thesis
Topics in Networking for project and thesis
Techsparks
 

More from Techsparks (20)

Available Research Topics in Machine Learning
Available Research Topics in Machine LearningAvailable Research Topics in Machine Learning
Available Research Topics in Machine Learning
 
How to Complete your thesis fast.pdf
How to Complete your thesis fast.pdfHow to Complete your thesis fast.pdf
How to Complete your thesis fast.pdf
 
How to Plan Thesis on Computer Science.pdf
How to Plan Thesis on Computer Science.pdfHow to Plan Thesis on Computer Science.pdf
How to Plan Thesis on Computer Science.pdf
 
Latest IEEE base paper for CSE.pdf
Latest IEEE base paper for CSE.pdfLatest IEEE base paper for CSE.pdf
Latest IEEE base paper for CSE.pdf
 
Popular Thesis Topics in Networking
Popular Thesis Topics in NetworkingPopular Thesis Topics in Networking
Popular Thesis Topics in Networking
 
Significant Research Topics in Cloud Computing
Significant Research Topics in Cloud ComputingSignificant Research Topics in Cloud Computing
Significant Research Topics in Cloud Computing
 
Trending Topics in Machine Learning
Trending Topics in Machine LearningTrending Topics in Machine Learning
Trending Topics in Machine Learning
 
Masters thesis in assistance patna
Masters thesis in assistance patnaMasters thesis in assistance patna
Masters thesis in assistance patna
 
Software engineering - Topics and Research Areas
Software engineering - Topics and Research AreasSoftware engineering - Topics and Research Areas
Software engineering - Topics and Research Areas
 
Cloud computing and Cloud Security - Basics and Terminologies
Cloud computing and Cloud Security - Basics and TerminologiesCloud computing and Cloud Security - Basics and Terminologies
Cloud computing and Cloud Security - Basics and Terminologies
 
Data mining - Process, Techniques and Research Topics
Data mining - Process, Techniques and Research TopicsData mining - Process, Techniques and Research Topics
Data mining - Process, Techniques and Research Topics
 
How to write a thesis - Guidelines to Thesis Writing
How to write a thesis - Guidelines to Thesis WritingHow to write a thesis - Guidelines to Thesis Writing
How to write a thesis - Guidelines to Thesis Writing
 
Topics in digital communication
Topics in digital communicationTopics in digital communication
Topics in digital communication
 
Research paper writers in hyderabad
Research paper writers in hyderabadResearch paper writers in hyderabad
Research paper writers in hyderabad
 
Topics in wireless communication for project and thesis
Topics in wireless communication for project and thesisTopics in wireless communication for project and thesis
Topics in wireless communication for project and thesis
 
Masters thesis in assistance indore
Masters thesis in assistance indoreMasters thesis in assistance indore
Masters thesis in assistance indore
 
Big Data Hadoop
Big Data HadoopBig Data Hadoop
Big Data Hadoop
 
Master's thesis assistance jalandhar
Master's thesis assistance jalandharMaster's thesis assistance jalandhar
Master's thesis assistance jalandhar
 
How to get published in Scopus/ IEEE journals
How to get published in Scopus/ IEEE journalsHow to get published in Scopus/ IEEE journals
How to get published in Scopus/ IEEE journals
 
Topics in Networking for project and thesis
Topics in Networking for project and thesisTopics in Networking for project and thesis
Topics in Networking for project and thesis
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 

Matlab - Introduction and Basics

  • 2.  The MATLAB stands for Matrix Laboratory. It is a tool to perform mathematical complex computations. In MATLAB, simplified C is used as the programming language. The MATLAB has various inbuilt toolboxes and these toolboxes are mathematical toolbox, drag and drop based GUI, Image processing, Neural networks etc. The MATLAB is generally used to implement algorithms, plotting graphs and design user interfaces. MATLAB is used to simulate networks due to availability of high graphics.
  • 3. Following are the main components of default MATLAB interface:  Command Window - The Command Window is the first important part of MATLAB which is used to show output of already saved code and to execute MATLAB codes temporarily.  Workspace - The workspace is the second part of MATLAB which is used to show allocation and reallocation of MATLAB variables.
  • 4.  Command History - The command history is the third part of MATLAB in which MATLAB commands are shown which are executed previously.  Current Folder Path - The current Folder path shows that path of the folder in which MATLAB codes are saved.  Current Folder Data - The Current Folder Data shows that data which is in the folders whose path is given in Current Folder Path.
  • 5. There are three commonly used commands in MATLAB:  CLC – This command is used to clear all input and output from display window.  Clear All – This command is used to clear all objects from workspace.  Close All – This command is used to close all the interfaces and return to the default interface.
  • 6. Here are the main features of MATLAB; o MATLAB is a high-level language used for complex numerical based computations, visualization, and for the development of different applications. o For exploration and solving problems, MATLAB provides an open-end environment. o MATLAB provides tools for to build applications using custom graphical interfaces.
  • 7.  MATLAB provides an extensive library of certain mathematical functions to perform operations on Linear Algebra, Fourier series, statistics, and for other mathematical computations.  For improving code quality, MATLAB provides certain development tools along with built-in graphics for data visualization.  MATLAB can be integrated with external applications and programming languages like C, Java.
  • 8.  For working with basics of MATLAB, firstly you have to setup the MATLAB environment on your system. After the MATLAB environment is set, you can execute commands after >> operator.  Example: Enter an expression like 10 + 10 and then press enter. MATLAB will execute this expression and return the result as: ans = 10
  • 9.  Semicolon in MATLAB - Semicolon is used as a terminating point of the statement. Example: x = 7; y = x + 8 MATLAB will return the answer as: y = 15  Comments in MATLAB - Comments can be added in MATLAB using symbol % Example: y = 5 % value 5 is assigned to y
  • 10. There are some special variables and constants used in MATLAB: Ans – For most recent answer Inf – To indicate infinity Eps – To depict accuracy of floating point precision NaN – For undefined numerical result I,j – Represent imaginary unit
  • 11. There are various commands used in MATLAB. Following are some of the commonly used commands in MATLAB: o cd – To change current directory o dir – To list all files in a current directory o what – To list all MATLAB files o format – To control format of the display screen o fsanf – To read formatted data from a file o fprintf – To perform formatted write to a file
  • 12.  lookfor – To search help for a keyword  cat – To concatenate arrays  prod – To find product of each column  eye – To create an identity matrix  num2cell – To convert numeric array to cell array
  • 13. There are two types of program files in MATLAB:  Scripts  Functions  Scripts - In these types of program files, series of commands are written which are required to be executed together.  Functions - Unlike script files, function files accept inputs to return output.
  • 14. Following are the different types of operators used in MATLAB:  Arithmetic Operators  Relational Operators  Logical Operators  Bitwise Operators  Set Operators
  • 15.  Arithmetic Operators - Arithmetic Operators include the operators used in linear algebra including +, -, *, /, ^. Arithmetic Operators also include Array and Matrix arithmetic operators.  Relational Operators - Following are the types of relational operators used: Less than – < Greater than – > Less than or equal to – <= Greater than or equal to – >= Equal to – == Not equal to – ~=
  • 16.  Logical Operators - There are two types of logical operators used in MATLAB: Element-wise – To perform operations on elements of logical arrays Short-Circuit wise – For operation on scalar and logical expressions  Bitwise Operators - These operators are used to perform bitwise operations on bits and work bit-by-bit using truth table for operations.  Set Operators - These operators perform functions like union, intersection, and testing.
  • 17. There are three types of loops used in MATLAB along with two loop control statements:  While loop  For loop  Nested loop Loop Control Statements:  Break  Continue
  • 18.  MATLAB is used to evaluate a large amount of data collected using computers and other such appliances.  MATLAB finds its application in signal processing and communication.  MATLAB is used to perform complex matrix operations which is useful in case of image and video processing.  Matlab provides certain graphical and statistical functions along with our such interesting features which makes it popular for a wide range of use.  Matlab is used in computational biology and computational finance.
  • 19.  Being an interpreted language, Matlab is easy to use.  Matlab provides built-in integrated development environment using which programs can be written easily.  Matlab is platform independent in the sense that it can run on different platforms.  Matlab has a vast library of predefined functions that provide solutions to various technical problems.
  • 20.  The main disadvantage of Matlab is that it is an interpreted language which means that it takes more time to execute than other compiled languages i.e. its execution speed is slow.  The second disadvantage is the cost. It is expensive than the regular C or Fortran compiler. Therefore, individuals find it expensive to purchase.
  • 21.  Techsparks Techsparks, 2nd floor, D-185, Phase 8B, Industrial Area, Sahibzada Ajit Singh Nagar, Mohali, Punjab 160055 +91-9465330425 techsparks2013@gmail.com http://www.techsparks.co.in