30

Summer training introduction to matlab

Embed Size (px)

Citation preview

Page 1: Summer training  introduction to matlab
Page 2: Summer training  introduction to matlab

Introduction toMATLAB

By: Krishna Mohan Pandey

Page 3: Summer training  introduction to matlab
Page 4: Summer training  introduction to matlab

MATLAB The name MATLAB stands for MATrix

LABoratory. MATLAB is a high-performance language for

technical computing. It integrates computation,

visualization, and programming environment. It was originally designed for solving linear

algebra type problems using matrices.

Page 5: Summer training  introduction to matlab

MATLAB (contd..) The MATLAB environment is command oriented

somewhat like UNIX. A prompt appears on the screen and a MATLAB statement can be entered.

MATLAB now has built-in functions for solving problems requiring data analysis, signal processing, optimization, and several other types of scientific computations.

It also contains functions for 2-D and 3-D graphics and animation.

Page 6: Summer training  introduction to matlab

MATLAB system consists of these main parts: Desktop Tools and Development

Environment Includes the MATLAB desktop and Command

Window, an editor and debugger, a code analyzer, browsers for viewing help, the workspace, files, and other tools

Mathematical Function Library Vast collection of computational algorithms

ranging from elementary functions, like sine, cosine, and complex arithmetic, to more sophisticated functions like matrix inverse, matrix eigenvalues, Bessel functions, and fast Fourier transforms.

Page 7: Summer training  introduction to matlab

The Language The MATLAB language is a high-level matrix/array

language with control flow statements, functions, data structures, input/output, and object-oriented programming features.

Graphics MATLAB has extensive facilities for displaying

vectors and matrices as graphs, as well as editing and printing these graphs. It also includes functions that allow you to customize the appearance of graphics as well as build complete graphical user interfaces on your MATLAB applications.

External Interfaces The external interfaces library allows you to write C

and Fortran programs that interact with MATLAB.

Page 8: Summer training  introduction to matlab

History of MATLAB Developed primarily by Cleve Moler in the

1970's using FORTRAN subroutines. Rewritten in C in the 1980's with more

functionality, which also include plotting features. The MathWorks Inc. was created (1984) to market

and continue development of MATLAB.

Page 9: Summer training  introduction to matlab

PRECEDENCE OF MATLABHIGHER LEVEL LANGUAGE

Assembly

High Level Languages such as

C, Pascal etc.

Matlab

Page 10: Summer training  introduction to matlab

Files structure and commands

Matlab

CommandLinem-files

functions

mat-files

Series of Matlab

commands

InputOutput

capability

Command execution like DOS

command window Data storage/

loading

Page 11: Summer training  introduction to matlab

Some Glimpses of the power of MATLAB

Page 12: Summer training  introduction to matlab

Some Glimpses of the power of MATLAB

Page 13: Summer training  introduction to matlab

Control System Toolbox

MATLAB Control Toolbox

Bode Plot and Nyquist Plot

The values of gain and phase margin and corresponding frequencies are Gm = 29.8637 Pm = 72.8960 Wcg = 39.9099 Wcp = 0.9036

Page 14: Summer training  introduction to matlab

Some Glimpses of the power of MATLAB

Page 15: Summer training  introduction to matlab

Some Glimpses of the power of MATLAB

Page 16: Summer training  introduction to matlab

What can we do in MATLAB ?

Numerical computation and symbolic calculations

Data processing Programming Visualization GUI ( Graphical User Interface) System modeling and simulation Design Games

Page 17: Summer training  introduction to matlab

MATLAB GRAPHICS It has the extended graphical capability. The various plots are:

2-D plots 3-D plots Scatter plots Mesh plots Surface plots

Page 18: Summer training  introduction to matlab

Scatter Plot

Surface Plot

Page 19: Summer training  introduction to matlab

Simulink Simulink software models, simulates, and

analyzes dynamic systems. Simulink supports linear and nonlinear systems,

modeled in continuous time, sampled time, or a hybrid of the two.

Used to model and solve real problems in a variety of industries, including:

• Aerospace and Defense• Automotive• Communications• Electronics and Signal Processing• Medical Instrumentation

Page 20: Summer training  introduction to matlab

Example

Page 21: Summer training  introduction to matlab

MATLAB Toolboxes Control System Toolbox Image Processing Toolbox Signal Processing Toolbox Financial toolbox Statistical Toolbox Communication Toolbox Neural Network Toolbox Fuzzy Logic Toolbox Aerospace Toolbox Fixed Income Toolbox

Page 22: Summer training  introduction to matlab

Strengths of MATLAB

MATLAB may behave as a calculator or as a

programming Language. MATLAB combines calculation and graphic plotting. MATLAB is relatively easy to learn. MATLAB is interpreted (not compiled), errors are

easy to fix. MATLAB is optimized to be relatively fast when

performing matrix operations.

Page 23: Summer training  introduction to matlab

Scope of MATLAB Academics and scientific research. Defense applications Space exploration Artificial Intelligence Bio-informatics and medical science Forecasting Plant modelling Finance Security Systems Communication & Networking

Page 24: Summer training  introduction to matlab

Career Prospects Electronics Communication Chemical Biomedical Software industries Finance companies Instrument manufacturers Plant designing

Note:- It has extensive use in R&D department of almost all the big companies.

Page 25: Summer training  introduction to matlab

Companies listed MathsWorks Intel Cadence Philips, Sony, Samsung, LG IBM, HP, Acer General Motors, Ford, Honda NSN, Ericsson, Tech Mahindra NASA ISRO CSIO, DRDO, BEL, BDL

Page 26: Summer training  introduction to matlab

MATLAB Course OutlineMATLAB BASICS• Overview/Introduction• Desktop Tools and Development Environment• Data types and structure• Working with array and operations• File handling and control• Data processing and analysis• Graphics• Programming• Scripts and functions

Page 27: Summer training  introduction to matlab

Course outline(cont…) TOOLS• GUIDE• SimulinkTOOLBOX• Control system toolbox• Communication

Page 28: Summer training  introduction to matlab

Why MATLAB Because it lets you test your ideas and

innovations very quickly. It lets you “feel” the code, stop a little with a

break point, add some lines, try this and try that, plot some graphs or image to see what I got, and Suddenly … through this “code gaming” finally have you a great working program.

Because it save you of declaring this and allocate memory for that and let you focused on the real target.

Because the code is very clean and minimal and very easy to understand and maintain.

Page 29: Summer training  introduction to matlab

QUESTIONS

Page 30: Summer training  introduction to matlab

Thank you for your time !!