310 likes | 766 Views
MATLAB. Presented By: Nathalie Tacconi. Originally Prepared By: Sheridan Saint-Michel. What Is MATLAB?. The name MATLAB is an abbreviation for MATrix LABoratory
E N D
MATLAB Presented By: Nathalie Tacconi Originally Prepared By: Sheridan Saint-Michel
What Is MATLAB? • The name MATLAB is an abbreviation for MATrix LABoratory • MATLAB is an “interactive, matrix-based system for algorithm development, GUI Design, data analysis, data visualization, and numeric computation”.
What Is MATLAB? • A way to solve complex numerical problems without actually writing a program • Built-in tools • No program structuring • MATLAB focuses on ease of use and quick development
Why Use MATLAB? • Used mainly for algorithm development and data visualization • Algorithms can be implemented and tested more quickly and easily than with traditional programming languages • Quickly get numerical and graphic answers to matrix and vector related math problems
Why Use MATLAB? • MATLAB is used for a wide range of applications including: • Signal and Image Processing • Communications • Control Design • Testing and Analysis • Financial Modelling • Computational Biology
Available Environments • MATLAB is available in a number of environments including: • PCs • Apple - Macintosh • Sun Workstations • VAX • MicroVAX
The Basics • MATLAB contains elaborate development tools to ease and speed development • MATLAB uses its own unique high-level language • Using MATLAB’s tools lets you write and test using much fewer lines of code than C or C++.
The Basics • Starting Screen
Development Tools • MATLAB editor - provides standard editing and debugging features, such as breakpoints and stepping through. • MATLAB profiler - records the time spent executing each line of code. • M-lint code checker - analyses your code and tells you where any problems are in addition to what changes can be made to make your program run faster.
Development Tools • MATLAB editor
Development Tools • MATLAB profiler
Development Tools • M-Lint Code Checker
Common Uses • Developing Algorithms • Data Analysis • Data Visualization • Designing Graphical User Interfaces (GUI) • Numeric Computation
Developing Algorithms • The use of MATLAB’s own high-level language and development tools allow you to develop and analyze algorithms faster and easier. • Using MATLAB’s tools lets you write and test algorithms using much fewer lines of code than C or C++. • MATLAB allows you to use traditional programming features, such as arithmetic operations, flow control, data structures, and object-oriented programming if desired.
Data Analysis • MATLAB provides interactive tools and command-line functions for data analysis operations including: • Interpolating and decimating • Extracting sections of data, scaling, and averaging • Thresholding and smoothing • Correlation, Fourier analysis, and filtering • 1-D peak, valley, and zero finding • Basic statistics and curve fitting • Matrix analysis
Data Analysis • Curve fitting
Data Analysis • MATLAB provides functions to input data easily from various sources. • MATLAB can read data from sources including: • Excel spreadsheets • Text files • Standard image, sound, and video files • Web pages • A computer’s serial port or sound card
Data Visualization • With MATLAB you can graph/draw complicated structures easily. • Extremely useful for visual representations of mathematical formulas. • Several powerful tools exist for: • 2-D and 3-D plotting • 3-D volume representation • Interactive graphing • Importing and exporting to standard graphic types
Data Visualization • 2-D plotting
Data Visualization • 3-D plotting and volume visualization
Data Visualization • Creating and editing plots interactively
Designing GUIs • MATLAB provides a tool called a GUIDE (Graphical User Interface Development Environment) which lets you quickly design, layout, and edit user interfaces.
Designing GUIs • GUIDE
Numeric Computation • MATLAB has built in functions to handle the following types of math problems: • Matrix manipulation and linear algebra • Polynomials and interpolation • Fourier analysis and filtering • Data analysis and statistics • Optimization and numerical integration • Ordinary differential equations (odes) • Partial differential equations (PDEs) • Sparse matrix operations
Numeric Computation • MATLAB provides the ability to add toolboxes - extensions which add additional functionality. • There are many toolboxes made by professional engineers and mathematicians ready for downloading.
Numeric Computation • Toolboxes have been created dealing with CSE topics: • Working with linked lists, stacks, and queues (CSE 1320) • Binary trees and red-black trees (CSE 2320) • Physics Problems (both physical and electromagnetic) • Circuit analysis
Summary • MATLAB is easy to learn and easy to use. • Modelling, developing, and testing is faster and easier using MATLAB than regular traditional tools. • GUIs, 2-D data representations, and 3-D data representations are easy to create. • Toolboxes can extend MATLAB’s functionality to tackle almost any problem.
Questions & References ? References: http://www.mathworks.com/products/matlab http://www.mathtools.net/MATLAB/index.html