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
Ad

More Related Content

What's hot (20)

MATLAB INTRODUCTION
MATLAB INTRODUCTIONMATLAB INTRODUCTION
MATLAB INTRODUCTION
Dr. Krishna Mohbey
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
Daniel Moore
 
System integration
System integrationSystem integration
System integration
Anita Martinek
 
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision tableProgramming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Anjali Technosoft
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics component
ABHISHEK MAURYA
 
Resonance in series and parallel circuits
Resonance in series and parallel circuitsResonance in series and parallel circuits
Resonance in series and parallel circuits
hardikpanchal424
 
Ch1 transistor as small signal amplifier
Ch1   transistor as small signal amplifierCh1   transistor as small signal amplifier
Ch1 transistor as small signal amplifier
Norlaili MSafri
 
Transister Tester Project Report with Circuit Diagram
Transister Tester Project Report with Circuit DiagramTransister Tester Project Report with Circuit Diagram
Transister Tester Project Report with Circuit Diagram
Team Kuk
 
DB ppt OS unit - 3.pdf
DB ppt OS unit - 3.pdfDB ppt OS unit - 3.pdf
DB ppt OS unit - 3.pdf
DBharathi8
 
Matlab Functions
Matlab FunctionsMatlab Functions
Matlab Functions
Umer Azeem
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
devika g
 
Classes of amplifiers
Classes of amplifiersClasses of amplifiers
Classes of amplifiers
Arsalan Qureshi
 
Module 5 :Voltage regulator IC 78XX 79XX LM317
Module 5 :Voltage regulator IC 78XX 79XX LM317Module 5 :Voltage regulator IC 78XX 79XX LM317
Module 5 :Voltage regulator IC 78XX 79XX LM317
chandrakant shinde
 
Software metrics
Software metricsSoftware metrics
Software metrics
syeda madeha azmat
 
Importance of software engineering
Importance of software engineeringImportance of software engineering
Importance of software engineering
SRM Easwari engineering college, Ramapuram, Chennai
 
Ic voltage regulators
Ic voltage regulatorsIc voltage regulators
Ic voltage regulators
Anita Thattil
 
OPERATIONAL AMPLIFIER (OP-AMP)****
OPERATIONAL AMPLIFIER (OP-AMP)**** OPERATIONAL AMPLIFIER (OP-AMP)****
OPERATIONAL AMPLIFIER (OP-AMP)****
aniii75
 
Printf and scanf
Printf and scanfPrintf and scanf
Printf and scanf
gidc engineering college
 
Some basic unix commands
Some basic unix commandsSome basic unix commands
Some basic unix commands
aaj_sarkar06
 
09 grasp
09 grasp09 grasp
09 grasp
SRM UNIVERSITY, RAMAPURAM
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
Daniel Moore
 
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision tableProgramming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Anjali Technosoft
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics component
ABHISHEK MAURYA
 
Resonance in series and parallel circuits
Resonance in series and parallel circuitsResonance in series and parallel circuits
Resonance in series and parallel circuits
hardikpanchal424
 
Ch1 transistor as small signal amplifier
Ch1   transistor as small signal amplifierCh1   transistor as small signal amplifier
Ch1 transistor as small signal amplifier
Norlaili MSafri
 
Transister Tester Project Report with Circuit Diagram
Transister Tester Project Report with Circuit DiagramTransister Tester Project Report with Circuit Diagram
Transister Tester Project Report with Circuit Diagram
Team Kuk
 
DB ppt OS unit - 3.pdf
DB ppt OS unit - 3.pdfDB ppt OS unit - 3.pdf
DB ppt OS unit - 3.pdf
DBharathi8
 
Matlab Functions
Matlab FunctionsMatlab Functions
Matlab Functions
Umer Azeem
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
devika g
 
Module 5 :Voltage regulator IC 78XX 79XX LM317
Module 5 :Voltage regulator IC 78XX 79XX LM317Module 5 :Voltage regulator IC 78XX 79XX LM317
Module 5 :Voltage regulator IC 78XX 79XX LM317
chandrakant shinde
 
Ic voltage regulators
Ic voltage regulatorsIc voltage regulators
Ic voltage regulators
Anita Thattil
 
OPERATIONAL AMPLIFIER (OP-AMP)****
OPERATIONAL AMPLIFIER (OP-AMP)**** OPERATIONAL AMPLIFIER (OP-AMP)****
OPERATIONAL AMPLIFIER (OP-AMP)****
aniii75
 
Some basic unix commands
Some basic unix commandsSome basic unix commands
Some basic unix commands
aaj_sarkar06
 

Similar to Matlab - Introduction and Basics (20)

Mbd dd
Mbd ddMbd dd
Mbd dd
Aditya Choudhury
 
Dsp file
Dsp fileDsp file
Dsp file
Sourabh Bhattacharya
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
محمدعبد الحى
 
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
 
Malab tutorial
Malab tutorialMalab tutorial
Malab tutorial
sisira senarathna
 
Seminar on MATLAB
Seminar on MATLABSeminar on MATLAB
Seminar on MATLAB
Dharmesh Tank
 
An Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked ExamplesAn Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked Examples
eAssessment in Practice Symposium
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
Dun Automation Academy
 
MATLAB Workshop yugjjnhhasfhlhhlllhl.pptx
MATLAB Workshop yugjjnhhasfhlhhlllhl.pptxMATLAB Workshop yugjjnhhasfhlhhlllhl.pptx
MATLAB Workshop yugjjnhhasfhlhhlllhl.pptx
prashantkumarchinama
 
Matlab anilkumar
Matlab  anilkumarMatlab  anilkumar
Matlab anilkumar
THEMASTERBLASTERSVID
 
Simulation lab
Simulation labSimulation lab
Simulation lab
Ezhilarasi Nagarajan
 
BEN520 FUNDAMENTALS OF BOENGINEERING II-4 week-lecture 4.pptx
BEN520 FUNDAMENTALS OF BOENGINEERING II-4 week-lecture 4.pptxBEN520 FUNDAMENTALS OF BOENGINEERING II-4 week-lecture 4.pptx
BEN520 FUNDAMENTALS OF BOENGINEERING II-4 week-lecture 4.pptx
chemeng87
 
Matlab
MatlabMatlab
Matlab
Abdulbasit Hassan
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
lekhacce
 
MatlabIntro (1).ppt
MatlabIntro (1).pptMatlabIntro (1).ppt
MatlabIntro (1).ppt
AkashSingh728626
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
BinodKumarSahu5
 
WIDI FREAK MANUSIA SETENGAH EDIOTDAN LEMBOT
WIDI FREAK MANUSIA SETENGAH EDIOTDAN LEMBOTWIDI FREAK MANUSIA SETENGAH EDIOTDAN LEMBOT
WIDI FREAK MANUSIA SETENGAH EDIOTDAN LEMBOT
IrlanMalik
 
Matlab
MatlabMatlab
Matlab
Maria Akther
 
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
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
Ameen San
 
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 Workshop yugjjnhhasfhlhhlllhl.pptx
MATLAB Workshop yugjjnhhasfhlhhlllhl.pptxMATLAB Workshop yugjjnhhasfhlhhlllhl.pptx
MATLAB Workshop yugjjnhhasfhlhhlllhl.pptx
prashantkumarchinama
 
BEN520 FUNDAMENTALS OF BOENGINEERING II-4 week-lecture 4.pptx
BEN520 FUNDAMENTALS OF BOENGINEERING II-4 week-lecture 4.pptxBEN520 FUNDAMENTALS OF BOENGINEERING II-4 week-lecture 4.pptx
BEN520 FUNDAMENTALS OF BOENGINEERING II-4 week-lecture 4.pptx
chemeng87
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
lekhacce
 
WIDI FREAK MANUSIA SETENGAH EDIOTDAN LEMBOT
WIDI FREAK MANUSIA SETENGAH EDIOTDAN LEMBOTWIDI FREAK MANUSIA SETENGAH EDIOTDAN LEMBOT
WIDI FREAK MANUSIA SETENGAH EDIOTDAN LEMBOT
IrlanMalik
 
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
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
Ameen San
 
Ad

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
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
 
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
 
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
 
Ad

Recently uploaded (20)

The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
How to Manage Cross Selling in Odoo 18 Sales
How to Manage Cross Selling in Odoo 18 SalesHow to Manage Cross Selling in Odoo 18 Sales
How to Manage Cross Selling in Odoo 18 Sales
Celine George
 
Dastur_ul_Amal under Jahangir Key Features.pptx
Dastur_ul_Amal under Jahangir Key Features.pptxDastur_ul_Amal under Jahangir Key Features.pptx
Dastur_ul_Amal under Jahangir Key Features.pptx
omorfaruqkazi
 
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdfAntepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Dr H.K. Cheema
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
PUBH1000 Slides - Module 12: Advocacy for Health
PUBH1000 Slides - Module 12: Advocacy for HealthPUBH1000 Slides - Module 12: Advocacy for Health
PUBH1000 Slides - Module 12: Advocacy for Health
JonathanHallett4
 
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
EduSkills OECD
 
How to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 InventoryHow to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 Inventory
Celine George
 
The History of Kashmir Lohar Dynasty NEP.ppt
The History of Kashmir Lohar Dynasty NEP.pptThe History of Kashmir Lohar Dynasty NEP.ppt
The History of Kashmir Lohar Dynasty NEP.ppt
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025
Mebane Rash
 
How to Configure Extra Steps During Checkout in Odoo 18 Website
How to Configure Extra Steps During Checkout in Odoo 18 WebsiteHow to Configure Extra Steps During Checkout in Odoo 18 Website
How to Configure Extra Steps During Checkout in Odoo 18 Website
Celine George
 
Module_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptxModule_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptx
drroxannekemp
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-17-2025 .pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-17-2025  .pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-17-2025  .pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-17-2025 .pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
114P_English.pdf114P_English.pdf114P_English.pdf
114P_English.pdf114P_English.pdf114P_English.pdf114P_English.pdf114P_English.pdf114P_English.pdf
114P_English.pdf114P_English.pdf114P_English.pdf
paulinelee52
 
UNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.ppt
UNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.ppt
UNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.ppt
lsitinova
 
ITI COPA Question Paper PDF 2017 Theory MCQ
ITI COPA Question Paper PDF 2017 Theory MCQITI COPA Question Paper PDF 2017 Theory MCQ
ITI COPA Question Paper PDF 2017 Theory MCQ
SONU HEETSON
 
Capitol Doctoral Presentation -May 2025.pptx
Capitol Doctoral Presentation -May 2025.pptxCapitol Doctoral Presentation -May 2025.pptx
Capitol Doctoral Presentation -May 2025.pptx
CapitolTechU
 
The Pedagogy We Practice: Best Practices for Critical Instructional Design
The Pedagogy We Practice: Best Practices for Critical Instructional DesignThe Pedagogy We Practice: Best Practices for Critical Instructional Design
The Pedagogy We Practice: Best Practices for Critical Instructional Design
Sean Michael Morris
 
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFAMCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
Dr. Nasir Mustafa
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
How to Manage Cross Selling in Odoo 18 Sales
How to Manage Cross Selling in Odoo 18 SalesHow to Manage Cross Selling in Odoo 18 Sales
How to Manage Cross Selling in Odoo 18 Sales
Celine George
 
Dastur_ul_Amal under Jahangir Key Features.pptx
Dastur_ul_Amal under Jahangir Key Features.pptxDastur_ul_Amal under Jahangir Key Features.pptx
Dastur_ul_Amal under Jahangir Key Features.pptx
omorfaruqkazi
 
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdfAntepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Dr H.K. Cheema
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
PUBH1000 Slides - Module 12: Advocacy for Health
PUBH1000 Slides - Module 12: Advocacy for HealthPUBH1000 Slides - Module 12: Advocacy for Health
PUBH1000 Slides - Module 12: Advocacy for Health
JonathanHallett4
 
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
Launch of The State of Global Teenage Career Preparation - Andreas Schleicher...
EduSkills OECD
 
How to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 InventoryHow to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 Inventory
Celine George
 
Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025Statement by Linda McMahon on May 21, 2025
Statement by Linda McMahon on May 21, 2025
Mebane Rash
 
How to Configure Extra Steps During Checkout in Odoo 18 Website
How to Configure Extra Steps During Checkout in Odoo 18 WebsiteHow to Configure Extra Steps During Checkout in Odoo 18 Website
How to Configure Extra Steps During Checkout in Odoo 18 Website
Celine George
 
Module_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptxModule_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptx
drroxannekemp
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
114P_English.pdf114P_English.pdf114P_English.pdf
114P_English.pdf114P_English.pdf114P_English.pdf114P_English.pdf114P_English.pdf114P_English.pdf
114P_English.pdf114P_English.pdf114P_English.pdf
paulinelee52
 
UNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.ppt
UNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.ppt
UNITED_KINGDOM.pptUNITED_KINGDOM.pptUNITED_KINGDOM.ppt
lsitinova
 
ITI COPA Question Paper PDF 2017 Theory MCQ
ITI COPA Question Paper PDF 2017 Theory MCQITI COPA Question Paper PDF 2017 Theory MCQ
ITI COPA Question Paper PDF 2017 Theory MCQ
SONU HEETSON
 
Capitol Doctoral Presentation -May 2025.pptx
Capitol Doctoral Presentation -May 2025.pptxCapitol Doctoral Presentation -May 2025.pptx
Capitol Doctoral Presentation -May 2025.pptx
CapitolTechU
 
The Pedagogy We Practice: Best Practices for Critical Instructional Design
The Pedagogy We Practice: Best Practices for Critical Instructional DesignThe Pedagogy We Practice: Best Practices for Critical Instructional Design
The Pedagogy We Practice: Best Practices for Critical Instructional Design
Sean Michael Morris
 
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFAMCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
Dr. Nasir Mustafa
 

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
  翻译: