23-07-2012, 03:31 PM
MATLAB Fundamentals
MATLAB Fundamentals.pptx (Size: 836.27 KB / Downloads: 29)
Why MATLAB?
Industry standard software application
Wealth of built-in functions and libraries
Toolboxes (add-on software modules) – image and signal processing, control systems design, fuzzy logic, etc.
Has own structured programming language
Ease of application and testing (pre- and post-processing without lots of programming and formatting)
Platform independent
MATLAB
MATLAB is a numerical analysis system
Can write “programs”, but they are not formally compiled
Should still use structured programming
Should still use comments
Comments are indicated by “%” at the beginning of the line
MATLAB Syntax
No complicated rules
Perhaps the most important thing to remember is semicolons ( at the end of a line to suppress output
MATLAB’s basic component is a Vector or Matrix
Even single value variables (Scalars)
All operations are optimized for vector use
Loops run slower in MATLAB than in Fortran (not a vector operation)
“size” command gives size of the matrix
Data types
All numbers are double precision
Text is stored as arrays of characters
You don’t have to declare the type of data (defined when running)
MATLAB is case-sensitive!!!