Escolar Documentos
Profissional Documentos
Cultura Documentos
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
KREST TECHNOLOGIES
Foundation of Matlab
The name is derived from MATrix LABoratory MATLAB is a case sensitive language (a variable named c is different than another one called C) MATLAB works with matrices everything MATLAB understands is a matrix (from text to large cell arrays and structure arrays) Various data types exist within MATLAB
KREST TECHNOLOGIES
KREST TECHNOLOGIES
MATLAB
MATLAB 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.
KREST TECHNOLOGIES
Strengths of MATLAB
MATLAB 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.
KREST TECHNOLOGIES
Other Features
2-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
KREST TECHNOLOGIES
Weaknesses of MATLAB
MATLAB 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).
KREST TECHNOLOGIES
KREST TECHNOLOGIES
Cont
MATLAB has the following basic window components: Work-space Displays all the defined variables. Command Window To execute commands in the MATLAB environment Command History Displays record of the commands used
KREST TECHNOLOGIES 9
Command Window
KREST TECHNOLOGIES
10
MATLAB just as if you type things in a calculator Cut and paste operations ease the repetition of tasks Use up-arrow key to repeat commands (command history)
KREST TECHNOLOGIES
11
Matlab Workspace
KREST TECHNOLOGIES
12
Workspace(Contd)
Workspace of Matlab shows all the defined variables
along with their order, memory space they occupy and the class to which they belong Above are shown a few such variables
KREST TECHNOLOGIES
13
Current Directory
KREST TECHNOLOGIES
14
KREST TECHNOLOGIES
15
Different Views
KREST TECHNOLOGIES
16
MATLAB Help
KREST TECHNOLOGIES
17
Matlab. The Help not only contains the theoretical background but also shows the demos for implementation The Matlab Help could be opened by using the HELP pull-down menu
KREST TECHNOLOGIES
18
command in the search field. As shown above the command to take square root (sqrt) is searched We can also utilize the Matlab help from the command window as shown in the next slide.
KREST TECHNOLOGIES
19
KREST TECHNOLOGIES
20
KREST TECHNOLOGIES
21