1. matlab programming

30

Upload: rajeshd84

Post on 20-Jan-2016

87 views

Category:

Documents


7 download

DESCRIPTION

This presentation clearly explains about programming in matlab, fundamentals of matlab

TRANSCRIPT

Page 1: 1. Matlab Programming
Page 2: 1. Matlab Programming

What is MATLAB?

MATLAB (Matrix Laboratory)MATLAB is developed by The Math Works,

Inc.MATLAB is a high-level technical

computing language and interactive environment for algorithm development, data visualization, data analysis, and numeric computation.

MATLAB can be install on Unix, Windows

Page 3: 1. Matlab Programming

MathWorks Product Overview

Page 4: 1. Matlab Programming

Distributed Computing @ matlab

Page 5: 1. Matlab Programming

MATLABMATLAB is a high-level language and interactive environment that enables you to perform computationally intensive tasks faster than with traditional programming languages such as C, C++, and Fortran.

Page 6: 1. Matlab Programming

History of MATLAB

Fortran subroutines for solving linear (LINPACK) and eigenvalue (EISPACK) problems

Developed primarily by Cleve Moler in the 1970’s

Page 7: 1. Matlab Programming

History of MATLAB, con’t: 2

Later, when teaching courses in mathematics, Moler wanted his students to be able to use LINPACK and EISPACK without requiring knowledge of Fortran

MATLAB developed as an interactive system to access LINPACK and EISPACK

Page 8: 1. Matlab Programming

History of MATLAB, con’t: 3

MATLAB gained popularity primarily through word of mouth because it was not officially distributed

In the 1980’s, MATLAB was rewritten in C with more functionality (such as plotting routines)

Page 9: 1. Matlab Programming

History of MATLAB, con’t: 4The Mathworks, Inc. was created in 1984The Mathworks is now responsible for

development, sale, and support for MATLABThe Mathworks is located in Natick, The Mathworks is an employer that hires co-

ops through our co-op program

Page 10: 1. Matlab Programming

Strengths of MATLABMATLAB is relatively easy to learn.MATLAB code is optimized to be relatively

quick when performing matrix operations.MATLAB may behave like a calculator or as a

programming language.MATLAB is interpreted, errors are easier to

fix.Although primarily procedural, MATLAB does

have some object-oriented elements.

Page 11: 1. Matlab Programming

Other Features2-D and 3-D graphics functions for visualizing

data Tools for building custom graphical user

interfaces Functions for integrating MATLAB based

algorithms with external applications and languages, such as C, C++, Fortran, Java, COM, and Microsoft Excel

Page 12: 1. Matlab Programming

Weaknesses of MATLABMATLAB is NOT a general purpose

programming language.MATLAB is an interpreted language (making

it for the most part slower than a compiled language such as C++).

MATLAB is designed for scientific computation and is not suitable for some things (such as parsing text).

Page 13: 1. Matlab Programming

Components of MATLAB Interface Workspace Current Directory Command History Command Window

Page 14: 1. Matlab Programming
Page 15: 1. Matlab Programming

SIMULINK

It is a commercial tool for modeling, simulating and analyzing multidomain dynamic systems.

Its primary interface is a graphical block diagramming tool and a customizable set of block libraries.

Page 16: 1. Matlab Programming

Cont……Simulink is widely used in control

theory and digital signal processing for multidomain simulation and Model-based design.

Page 17: 1. Matlab Programming

Cont…..Generally there are three ways to open

Simulink1.By using start in Matlab2.By typing Simulink in Command prompt.3.By clicking Simulink icon in toolbar.

Page 18: 1. Matlab Programming

Cont……

Simulink is widely used in control theory and digital signal processing for multidomain simulation and Model-based design.

Page 19: 1. Matlab Programming
Page 20: 1. Matlab Programming
Page 21: 1. Matlab Programming
Page 22: 1. Matlab Programming
Page 23: 1. Matlab Programming
Page 24: 1. Matlab Programming
Page 25: 1. Matlab Programming
Page 26: 1. Matlab Programming
Page 27: 1. Matlab Programming
Page 28: 1. Matlab Programming
Page 29: 1. Matlab Programming

Referenceshttp://www.mathworks.com/products/matlab/i

ndex.htmlhttp://www.ccs.neu.edu/home/wmason/Mastering MATLAB 7. Duane C. Hanselman,

Bruce L. Littlefield. Prentice Hall, 2004.MATLAB: An Introduction with Applications.

Amos Gilat. Wiley, 2003.

Page 30: 1. Matlab Programming

End

Another satisfied MATLAB user!