Sunteți pe pagina 1din 18

MATLAB

By,

Premanand P.Ghadekar

7/20/2012

Outline

Syllabus MATLAB Introduction MATLAB Elements Types Help Variables Matrices


2

7/20/2012

Syllabus

Syllabus Lesson Plan Practical Plan

7/20/2012

INTRODUCTION

MATLAB-Matrix Laboratory. MATLAB is a Software package for high performance numerical computations & visualization. It provides an interactive environment with hundreds of built-in functions for technical computation, graphics, & animation.

7/20/2012

WHY MATLAB

Easy of use. MATLAB is an interactive system whose basic data element is an array that does not require dimensioning. MATLAB is high performance language for technical computing. It provides various Toolboxes ex-DSP,IP,FUZZY Logic etc. It also used to create GUI. More than 500 mathematical & Engineering functions. MATLAB code & data formats are Platform Independent. MATLAB programs can be converted to C/C++.

7/20/2012

Opening Matlab

7/20/2012

&

7/20/2012

Platforms and Versions

MATLAB is platform independent. It work on Windows platform as well as on Unix platform. System requirement
Pentium II or later version,Widows95, windows98 or later version, CD-ROM, 256 MB RAM.

7/20/2012

HELP

Online help is available. MATLAB demos are available. Help for program, m-file, directory name, inbuilt function is available.

7/20/2012

MATLAB FUNDAMENTALS

MATLAB Windows MATLAB File types. Creating Directory & saving files. Notations, Syntax & Operations Some Built-in functions Some useful commands

7/20/2012

10

MATLAB WINDOWS

Command Window-Main window, Characterized by command prompt >>, All commands are typed in this
windows. It contains three other smaller windows.

Command History Current Directory Workspace

Figure Window Edit Window


11

7/20/2012

MATLAB FILE TYPES

M-Files Standard ASCII text files. There are two types- Script files, Function file. Mat Files-Binary Data files. Mat files are created by MATLAB when you save command. Fig Files-Binary figure files Mex Files-MATLAB callable Fortran & C-programs. P-file

7/20/2012

12

MATLAB

MATLAB Programming Language User Written Functions

Built in Functions
Graphics 2-D 3-D Animation Audio & Video Computations Linear Algebra Data Analysis Signal Processing
Toolboxes External Interface (Mex-Files) Interface with C , Java & Fortran Programs

Signal Processing Control System Statistics Neural Networks


7/20/2012

Image Processing Communications Optimization Financial & Many More


13

NOTATION & SYNTAX

It is case sensitive language. Simple arithmetic Calculations

7/20/2012

14

Data Types

7/20/2012

15

Variables

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
16

7/20/2012

Matlab Special Variables


ans -Default variable name for results pi -Value of eps -Smallest incremental number inf -Infinity NaN -Not a number e.g. 0/0 realmin -The smallest usable positive real number realmax -The largest usable positive real number
17

7/20/2012

Matlab Assignment & Operators

7/20/2012

18

S-ar putea să vă placă și