SlideShare a Scribd company logo
Lecture 1
Introduction to MATLAB
1
Eng. Mohamed Awni
Electrical & Computer Engineering
Dept.
Agenda
2
 What is Matlab & history?
 why use Matlab?
 Matlab Structure.
 Main Matlab Window.
 Matlab as calculator.
3
What is Matlab & its history
• Stands for MATrix LABoratory.
• MATLAB is a numerical computing environment
and programming language.
• High level language for technical computing
• Created by The MathWorks 1984
• American mathematician and computer
programmer specializing in numerical analysis
Cleve Moler
Origins of MATLAB
http://www.mathworks.com/videos/origins-of-matlab-70332.html
MATLAB allows easy in:-
• Matrix manipulation.
• Plotting of functions and data.
• Implementation of algorithms.
• Creation of user interfaces (GUI).
• Interfacing with programs in other languages.
Why use Matlab?
5
Matlab Structure
Matlab
Command Line
(Interactive Mode)
m-files
(Batch Mode
functions
mat-files
Command execution
like DOS command
window
Series of Matlab
commands
Data
storage/
loading
6
Main Matlab Window
This sub window lists all variables that you have generated so far along with there type
and size.
Workspace
All commands typed on MATLAB prompt in the command window get recorded, even
across multiple session in this window.
Command History
The main window characterized by the MATLAB command prompt (>>)
Command Window
This is where you write, edit, create, and save your own script or programs in files called
m-files.
Editor Window
This is where all your files from the current directory are listed.
Current Directory
Main Matlab Window
8
Matlab as calculator
• As an example of a simple interactive calculation, just
type the following expression 1 + 2 × 3 at the prompt
command >>
• Press Enter.
• The last calculation overwrites the previous calculation in
ans.
9
Assigning the result of computation to the variable x
Matlab as calculator
Assigning results of computation to the variable z
10
Exercises

More Related Content

PDF
Matlab for beginners, Introduction, signal processing
PPT
Introduction to matlab
PDF
Matlab intro
PPTX
Matlab Functions
PPT
Brief Introduction to Matlab
PPTX
Matlab ppt
PDF
Introduction to matlab
PDF
MATLAB INTRODUCTION
Matlab for beginners, Introduction, signal processing
Introduction to matlab
Matlab intro
Matlab Functions
Brief Introduction to Matlab
Matlab ppt
Introduction to matlab
MATLAB INTRODUCTION

What's hot (20)

PPTX
Matlab ppt
PDF
MATLAB Basics-Part1
PPTX
Seminar on MATLAB
PPTX
An Introduction to MATLAB for beginners
PPTX
Matlab introduction
PPT
Chapter 2 - Matlab Environment
PPT
Matlab practical and lab session
PPT
Matlab Basic Tutorial
PPSX
Matrix Manipulation in Matlab
PPTX
Matlab Introduction
PPT
Introduction to matlab
PPTX
Introduction to matlab lecture 1 of 4
PPTX
Introduction to arm processor
PPTX
Introduction to MATLAB
PPTX
[OOP - Lec 04,05] Basic Building Blocks of OOP
PDF
Numerical Computing
PPTX
Backtracking
PDF
Introduction to Matlab
PPT
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
PPT
Introduction to MATLAB
Matlab ppt
MATLAB Basics-Part1
Seminar on MATLAB
An Introduction to MATLAB for beginners
Matlab introduction
Chapter 2 - Matlab Environment
Matlab practical and lab session
Matlab Basic Tutorial
Matrix Manipulation in Matlab
Matlab Introduction
Introduction to matlab
Introduction to matlab lecture 1 of 4
Introduction to arm processor
Introduction to MATLAB
[OOP - Lec 04,05] Basic Building Blocks of OOP
Numerical Computing
Backtracking
Introduction to Matlab
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
Introduction to MATLAB
Ad

Viewers also liked (6)

PDF
HSC Algebra Lec 06 Determinant
PDF
HSC Algebra Lec 01 Matrix
PDF
HSC Algebra Lec 05 Determinant
PDF
HSC Algebra Lec 03 Matrix
PDF
HSC Algebra Lec 04 Determinant
PDF
HSC Algebra Lec 02 Matrix
HSC Algebra Lec 06 Determinant
HSC Algebra Lec 01 Matrix
HSC Algebra Lec 05 Determinant
HSC Algebra Lec 03 Matrix
HSC Algebra Lec 04 Determinant
HSC Algebra Lec 02 Matrix
Ad

Similar to Matlab introduction lecture 1 (20)

PPSX
Summer training introduction to matlab
PDF
MATLAB_intro_lect1 details about matlab(1).pdf
PPTX
Matlab lecture
PPT
MATLAB workshop lecture 1MATLAB work.ppt
PDF
MATLAB Assignment Help
PDF
++Matlab 14 sesiones
DOCX
communication system.docx
PPT
Matlab Introduction
PPTX
Matlab - Introduction and Basics
PPTX
Basics of Matlab An Overview An Introductory Tutorial
PPTX
Basic matlab and matrix
PPT
Chapter 1 matlab demo
PDF
Matlab (Presentation on MATLAB)
PPSX
Summer training in matlab
PDF
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
PPTX
All About MATLAB
PPT
MATLAB_CIS601-03.ppt
PDF
Introduction to Matlab for Engineering & Science Students.pdf
PPT
INTRODUCTION TO MATLAB for PG students.ppt
PPTX
SoftwareApplicationInTermsOFMatlabSimulation
Summer training introduction to matlab
MATLAB_intro_lect1 details about matlab(1).pdf
Matlab lecture
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB Assignment Help
++Matlab 14 sesiones
communication system.docx
Matlab Introduction
Matlab - Introduction and Basics
Basics of Matlab An Overview An Introductory Tutorial
Basic matlab and matrix
Chapter 1 matlab demo
Matlab (Presentation on MATLAB)
Summer training in matlab
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
All About MATLAB
MATLAB_CIS601-03.ppt
Introduction to Matlab for Engineering & Science Students.pdf
INTRODUCTION TO MATLAB for PG students.ppt
SoftwareApplicationInTermsOFMatlabSimulation

Recently uploaded (20)

PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Construction Project Organization Group 2.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
DOCX
573137875-Attendance-Management-System-original
PPTX
web development for engineering and engineering
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Construction Project Organization Group 2.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Internet of Things (IOT) - A guide to understanding
Foundation to blockchain - A guide to Blockchain Tech
573137875-Attendance-Management-System-original
web development for engineering and engineering
Model Code of Practice - Construction Work - 21102022 .pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Sustainable Sites - Green Building Construction
Automation-in-Manufacturing-Chapter-Introduction.pdf
bas. eng. economics group 4 presentation 1.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Geodesy 1.pptx...............................................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Mechanical Engineering MATERIALS Selection
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

Matlab introduction lecture 1

  • 1. Lecture 1 Introduction to MATLAB 1 Eng. Mohamed Awni Electrical & Computer Engineering Dept.
  • 2. Agenda 2  What is Matlab & history?  why use Matlab?  Matlab Structure.  Main Matlab Window.  Matlab as calculator.
  • 3. 3 What is Matlab & its history • Stands for MATrix LABoratory. • MATLAB is a numerical computing environment and programming language. • High level language for technical computing • Created by The MathWorks 1984 • American mathematician and computer programmer specializing in numerical analysis Cleve Moler Origins of MATLAB http://www.mathworks.com/videos/origins-of-matlab-70332.html
  • 4. MATLAB allows easy in:- • Matrix manipulation. • Plotting of functions and data. • Implementation of algorithms. • Creation of user interfaces (GUI). • Interfacing with programs in other languages. Why use Matlab?
  • 5. 5 Matlab Structure Matlab Command Line (Interactive Mode) m-files (Batch Mode functions mat-files Command execution like DOS command window Series of Matlab commands Data storage/ loading
  • 6. 6 Main Matlab Window This sub window lists all variables that you have generated so far along with there type and size. Workspace All commands typed on MATLAB prompt in the command window get recorded, even across multiple session in this window. Command History The main window characterized by the MATLAB command prompt (>>) Command Window This is where you write, edit, create, and save your own script or programs in files called m-files. Editor Window This is where all your files from the current directory are listed. Current Directory
  • 8. 8 Matlab as calculator • As an example of a simple interactive calculation, just type the following expression 1 + 2 × 3 at the prompt command >> • Press Enter. • The last calculation overwrites the previous calculation in ans.
  • 9. 9 Assigning the result of computation to the variable x Matlab as calculator Assigning results of computation to the variable z