Matlab

Presented By:
Maria Akther
ID:083-20-119
Dept. : Computer Science
Daffodil International University
MATLAB
  Matlab introduction
 Matlab elements
 Variables
 Matrices
 Loading, saving and plotting
 Matlab Programming language
 Some functions
   Matlab is a program for doing numerical
    computation. It was originally designed for
    solving linear algebra type problems using
    matrices. It’s name is derived from MATrix
    LABoratory.

   Matlab is also a high level programming
    language that currently is widely used as a
    platform for developing tools for Machine
    Learning.
   Some other aspects of Matlab
    -Matlab is an interpreter -> not as fast as
    compiled code
     -Typically quite fast for an interpreted
    language
    -Can be linked to C/C++, JAVA, SQL etc
    -Commercial product, but widely used in
    industry and academia
    -Many algorithms and toolboxes freely
    available
Advantages of MATLAB:
 -Easy to use
 -Predefined Functions
 -Plotting

Disadvantages of MATLAB:
 - Can be slow
 - Commercial Software.
 Command Window
  type commands


 Workspace
  view program
   variables
  double click on a
   variable to see it in the
   array Editor.

 Command History
  view past commands
  Have not to be previously declared
 Variable names can contain up to 63 characters
 Variable names must start with a letter followed
  by letters, digits, and underscores.
 Variable names are case sensitive.
 ans     Default variable name for results
 pi      Value of π
 inf     Infinity
 NaN     Not a number e.g. 0/0
 realmin The smallest usable positive real
  number
 realmax The largest usable positive real
  number
 Assignment              =    a = b (assign b to a)
 Addition         +       a+b
 Subtraction             -    a -b
 Multiplication   * or .*   a*b or a.*b
 Division         / or ./ a/b or a./b
 Power             ^ or .^ a^b or a.^b
 Matlab treats all variables as matrices. A
  matrix can be thought of as an array, in fact,
  that is how it is stored.
 Vectors are special forms of matrices and
  contain only one row OR one column.
 Scalars are matrices with only one row AND
  one column
 A matrix with only one row is called a row
  vector. A row vector can be created in
 Matlab as follows (note the commas):
      » rowvec = [12 , 14 , 63]
   A matrix with only one column is called a column
    vector. A column vector can be created in MATLAB
    as follows (note the semicolons):
        » colvec = [13 ; 45 ; -2]

   A matrix can be created in Matlab as follows (note
    the commas AND semicolons):
              » matrix = [1 , 2 , 3 ; 4 , 5 ,6 ; 7 , 8 , 9]
        t =1:10

t=
 1 2 3 4 5 6 7 8 9 10

        k =2:-0.5:-1

    k=
         2 1.5 1 0.5 0 -0.5 -1
 x = [1 2], y = [4 5], z=[ 0 0]
     A = [ x y]
      1 2 4 5
   B = [x ; y]
     12
     45
   Matlab has a lot of function for plotting data. The basic
    one will plot one vector vs. another. The first one will
    be treated as the abscissa (or x) vector and the
    second as the ordinate (or y) vector. The vectors have
    to be the same length.

        >> plot (time, dist) % plotting versus time
   Create an x-array of 100 samples between 0 and 4π.

   Calculate sin(.) of the x-array

   Plot the y-array
   title(.)



   xlabel(.)

   ylabel(.)
Signal Processing Toolbox™ provides industry-standard algorithms
for analog and digital signal processing (DSP). We can use the
toolbox to visualize signals in time and frequency domains, compute
FFTs for spectral analysis, design FIR and IIR filters, and implement
convolution, modulation, re-sampling, and other signal processing
techniques. Algorithms in the toolbox can be used as a basis for
developing custom algorithms for audio and speech processing,
instrumentation, and baseband wireless communications.
Matlab
   Within Matlab
    Type help at the Matlab prompt or help followed by a
    function name for help on a specific function
   Online
    Online documentation for Matlab at the
    MathWorks website

    http://www.mathworks.com/access/helpdesk/help/techdoc/matlab
    .html
Matlab
1 von 21

Recomendados

Matlab Presentation von
Matlab PresentationMatlab Presentation
Matlab PresentationMohamed El Rayany
6K views10 Folien
Matlab von
MatlabMatlab
Matlabsandhya jois
620 views29 Folien
Pooja von
PoojaPooja
PoojaRavi Ramchandani
130 views12 Folien
Introduction to matlab lecture 1 of 4 von
Introduction to matlab lecture 1 of 4Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4Randa Elanwar
2.5K views47 Folien
How to work on Matlab....... von
How to work on Matlab.......How to work on Matlab.......
How to work on Matlab.......biinoida
10.1K views16 Folien
Introduction to MATLAB von
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLABRavikiran A
5K views79 Folien

Más contenido relacionado

Was ist angesagt?

Lecture 9 von
Lecture 9Lecture 9
Lecture 9Soran University
303 views27 Folien
Matlab 1 level_1 von
Matlab 1 level_1Matlab 1 level_1
Matlab 1 level_1Ahmed Farouk
408 views24 Folien
Digital communication lab lectures von
Digital communication lab  lecturesDigital communication lab  lectures
Digital communication lab lecturesmarwaeng
75 views24 Folien
MATLAB von
MATLABMATLAB
MATLABsvati sharma
217 views16 Folien
Matlab tutorial von
Matlab tutorialMatlab tutorial
Matlab tutorialDevi Anjani
300 views173 Folien
Programming in python von
Programming in pythonProgramming in python
Programming in pythonIvan Rojas
29 views18 Folien

Was ist angesagt?(19)

Digital communication lab lectures von marwaeng
Digital communication lab  lecturesDigital communication lab  lectures
Digital communication lab lectures
marwaeng75 views
Programming in python von Ivan Rojas
Programming in pythonProgramming in python
Programming in python
Ivan Rojas29 views
Data structure and algorithm using java von Narayan Sau
Data structure and algorithm using javaData structure and algorithm using java
Data structure and algorithm using java
Narayan Sau4.9K views
Image processing with matlab von Aman Gupta
Image processing with matlabImage processing with matlab
Image processing with matlab
Aman Gupta1.3K views
The dag representation of basic blocks von Shabeen Taj
The dag representation of basic blocksThe dag representation of basic blocks
The dag representation of basic blocks
Shabeen Taj2.3K views
Chapter 2 Basics of MATLAB von Pranoti Doke
Chapter 2 Basics of MATLABChapter 2 Basics of MATLAB
Chapter 2 Basics of MATLAB
Pranoti Doke69 views
Applications of data structures von Wipro
Applications of data structuresApplications of data structures
Applications of data structures
Wipro29.5K views
Matlab - Introduction and Basics von Techsparks
Matlab - Introduction and BasicsMatlab - Introduction and Basics
Matlab - Introduction and Basics
Techsparks 115 views

Destacado

Relation model part 1 von
Relation model part 1Relation model part 1
Relation model part 1Siti Ismail
950 views49 Folien
Relational model von
Relational modelRelational model
Relational modelWBUTTUTORIALS
2.3K views20 Folien
CPSC 125 Ch 4 Sec 1 von
CPSC 125 Ch 4 Sec 1CPSC 125 Ch 4 Sec 1
CPSC 125 Ch 4 Sec 1David Wood
407 views17 Folien
Dbms ii mca-ch4-relational model-2013 von
Dbms ii mca-ch4-relational model-2013Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Prosanta Ghosh
1.3K views31 Folien
02 rdbms session02 von
02 rdbms session0202 rdbms session02
02 rdbms session02Niit Care
1.1K views16 Folien

Similar a Matlab

MATLAB INTRODUCTION von
MATLAB INTRODUCTIONMATLAB INTRODUCTION
MATLAB INTRODUCTIONDr. Krishna Mohbey
2.9K views122 Folien
Brief Introduction to Matlab von
Brief  Introduction to MatlabBrief  Introduction to Matlab
Brief Introduction to MatlabTariq kanher
3.8K views22 Folien
MatlabIntro (1).ppt von
MatlabIntro (1).pptMatlabIntro (1).ppt
MatlabIntro (1).pptAkashSingh728626
8 views30 Folien
Introduction to matlab von
Introduction to matlabIntroduction to matlab
Introduction to matlabSantosh V
1.4K views51 Folien
Introduction to Matlab.ppt von
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.pptRavibabu Kancharla
12 views39 Folien
From zero to MATLAB hero: Mastering the basics and beyond von
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 beyondMahuaPal6
8 views137 Folien

Similar a Matlab(20)

Brief Introduction to Matlab von Tariq kanher
Brief  Introduction to MatlabBrief  Introduction to Matlab
Brief Introduction to Matlab
Tariq kanher3.8K views
Introduction to matlab von Santosh V
Introduction to matlabIntroduction to matlab
Introduction to matlab
Santosh V1.4K views
From zero to MATLAB hero: Mastering the basics and beyond von MahuaPal6
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
MahuaPal68 views
interfacing matlab with embedded systems von Raghav Shetty
interfacing matlab with embedded systemsinterfacing matlab with embedded systems
interfacing matlab with embedded systems
Raghav Shetty1.1K views
Introduction to Matlab von Amr Rashed
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
Amr Rashed23.1K views
Matlab introduction von Ameen San
Matlab introductionMatlab introduction
Matlab introduction
Ameen San1.1K views
Matlab Introduction von ideas2ignite
Matlab IntroductionMatlab Introduction
Matlab Introduction
ideas2ignite58.1K views

Más de Maria Akther

Prolocalizer von
ProlocalizerProlocalizer
ProlocalizerMaria Akther
342 views14 Folien
Iso12207:2008 standard von
Iso12207:2008 standardIso12207:2008 standard
Iso12207:2008 standardMaria Akther
1.3K views16 Folien
Error detection and correction von
Error detection and correctionError detection and correction
Error detection and correctionMaria Akther
18.3K views17 Folien
Boundary Extraction von
Boundary ExtractionBoundary Extraction
Boundary ExtractionMaria Akther
21.4K views14 Folien
Impact of supply chain management von
Impact of supply chain managementImpact of supply chain management
Impact of supply chain managementMaria Akther
2K views10 Folien
Open64 compiler von
Open64 compilerOpen64 compiler
Open64 compilerMaria Akther
1.2K views15 Folien

Más de Maria Akther(6)

Iso12207:2008 standard von Maria Akther
Iso12207:2008 standardIso12207:2008 standard
Iso12207:2008 standard
Maria Akther1.3K views
Error detection and correction von Maria Akther
Error detection and correctionError detection and correction
Error detection and correction
Maria Akther18.3K views
Boundary Extraction von Maria Akther
Boundary ExtractionBoundary Extraction
Boundary Extraction
Maria Akther21.4K views
Impact of supply chain management von Maria Akther
Impact of supply chain managementImpact of supply chain management
Impact of supply chain management
Maria Akther2K views

Último

Tunable Laser (1).pptx von
Tunable Laser (1).pptxTunable Laser (1).pptx
Tunable Laser (1).pptxHajira Mahmood
23 views37 Folien
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 von
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院IttrainingIttraining
34 views8 Folien
20231123_Camunda Meetup Vienna.pdf von
20231123_Camunda Meetup Vienna.pdf20231123_Camunda Meetup Vienna.pdf
20231123_Camunda Meetup Vienna.pdfPhactum Softwareentwicklung GmbH
28 views73 Folien
Voice Logger - Telephony Integration Solution at Aegis von
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at AegisNirmal Sharma
17 views1 Folie
Top 10 Strategic Technologies in 2024: AI and Automation von
Top 10 Strategic Technologies in 2024: AI and AutomationTop 10 Strategic Technologies in 2024: AI and Automation
Top 10 Strategic Technologies in 2024: AI and AutomationAutomationEdge Technologies
14 views14 Folien
Empathic Computing: Delivering the Potential of the Metaverse von
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the MetaverseMark Billinghurst
470 views80 Folien

Último(20)

【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 von IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
Voice Logger - Telephony Integration Solution at Aegis von Nirmal Sharma
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma17 views
Empathic Computing: Delivering the Potential of the Metaverse von Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst470 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... von Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker26 views
Transcript: The Details of Description Techniques tips and tangents on altern... von BookNet Canada
Transcript: The Details of Description Techniques tips and tangents on altern...Transcript: The Details of Description Techniques tips and tangents on altern...
Transcript: The Details of Description Techniques tips and tangents on altern...
BookNet Canada130 views
Spesifikasi Lengkap ASUS Vivobook Go 14 von Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang35 views
From chaos to control: Managing migrations and Microsoft 365 with ShareGate! von sammart93
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!From chaos to control: Managing migrations and Microsoft 365 with ShareGate!
From chaos to control: Managing migrations and Microsoft 365 with ShareGate!
sammart939 views
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors von sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab15 views
Unit 1_Lecture 2_Physical Design of IoT.pdf von StephenTec
Unit 1_Lecture 2_Physical Design of IoT.pdfUnit 1_Lecture 2_Physical Design of IoT.pdf
Unit 1_Lecture 2_Physical Design of IoT.pdf
StephenTec11 views
The details of description: Techniques, tips, and tangents on alternative tex... von BookNet Canada
The details of description: Techniques, tips, and tangents on alternative tex...The details of description: Techniques, tips, and tangents on alternative tex...
The details of description: Techniques, tips, and tangents on alternative tex...
BookNet Canada121 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows von Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software225 views
Perth MeetUp November 2023 von Michael Price
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023
Michael Price15 views

Matlab

  • 1. Presented By: Maria Akther ID:083-20-119 Dept. : Computer Science Daffodil International University
  • 3.  Matlab introduction  Matlab elements  Variables  Matrices  Loading, saving and plotting  Matlab Programming language  Some functions
  • 4. Matlab is a program for doing numerical computation. It was originally designed for solving linear algebra type problems using matrices. It’s name is derived from MATrix LABoratory.  Matlab is also a high level programming language that currently is widely used as a platform for developing tools for Machine Learning.
  • 5. Some other aspects of Matlab -Matlab is an interpreter -> not as fast as compiled code -Typically quite fast for an interpreted language -Can be linked to C/C++, JAVA, SQL etc -Commercial product, but widely used in industry and academia -Many algorithms and toolboxes freely available
  • 6. Advantages of MATLAB: -Easy to use -Predefined Functions -Plotting Disadvantages of MATLAB: - Can be slow - Commercial Software.
  • 7.  Command Window type commands  Workspace view program variables double click on a variable to see it in the array Editor.  Command History view past commands
  • 8.  Have not to be previously declared  Variable names can contain up to 63 characters  Variable names must start with a letter followed by letters, digits, and underscores.  Variable names are case sensitive.
  • 9.  ans Default variable name for results  pi Value of π  inf Infinity  NaN Not a number e.g. 0/0  realmin The smallest usable positive real number  realmax The largest usable positive real number
  • 10.  Assignment = a = b (assign b to a)  Addition + a+b  Subtraction - a -b  Multiplication * or .* a*b or a.*b  Division / or ./ a/b or a./b  Power ^ or .^ a^b or a.^b
  • 11.  Matlab treats all variables as matrices. A matrix can be thought of as an array, in fact, that is how it is stored.  Vectors are special forms of matrices and contain only one row OR one column.  Scalars are matrices with only one row AND one column  A matrix with only one row is called a row vector. A row vector can be created in  Matlab as follows (note the commas): » rowvec = [12 , 14 , 63]
  • 12. A matrix with only one column is called a column vector. A column vector can be created in MATLAB as follows (note the semicolons): » colvec = [13 ; 45 ; -2]  A matrix can be created in Matlab as follows (note the commas AND semicolons): » matrix = [1 , 2 , 3 ; 4 , 5 ,6 ; 7 , 8 , 9]
  • 13. t =1:10 t= 1 2 3 4 5 6 7 8 9 10  k =2:-0.5:-1 k= 2 1.5 1 0.5 0 -0.5 -1
  • 14.  x = [1 2], y = [4 5], z=[ 0 0]  A = [ x y] 1 2 4 5  B = [x ; y] 12 45
  • 15. Matlab has a lot of function for plotting data. The basic one will plot one vector vs. another. The first one will be treated as the abscissa (or x) vector and the second as the ordinate (or y) vector. The vectors have to be the same length. >> plot (time, dist) % plotting versus time
  • 16. Create an x-array of 100 samples between 0 and 4π.  Calculate sin(.) of the x-array  Plot the y-array
  • 17. title(.)  xlabel(.)  ylabel(.)
  • 18. Signal Processing Toolbox™ provides industry-standard algorithms for analog and digital signal processing (DSP). We can use the toolbox to visualize signals in time and frequency domains, compute FFTs for spectral analysis, design FIR and IIR filters, and implement convolution, modulation, re-sampling, and other signal processing techniques. Algorithms in the toolbox can be used as a basis for developing custom algorithms for audio and speech processing, instrumentation, and baseband wireless communications.
  • 20. Within Matlab Type help at the Matlab prompt or help followed by a function name for help on a specific function  Online Online documentation for Matlab at the MathWorks website http://www.mathworks.com/access/helpdesk/help/techdoc/matlab .html