MATLAB Overview
This is an early study note from 2018. Some of it may be out of date.
- MATLAB consists of two main parts: MATLAB and Simulink.
- MATLAB is built on matrix operations. Its full name is MATrix LABoratory.
- Main capabilities of MATLAB
- Technical computing —> mathematical computation, analysis, visualization and algorithm development
- Control system design —> model-based design of control systems, including embedded system simulation, rapid prototyping and code generation
- Signal processing and communications —> model-based design of signal processing and communication systems, including simulation, code generation and verification
- Image processing —> image acquisition, analysis, visualization and algorithm development
- Test and measurement —> hardware connectivity and data analysis for test and measurement applications
- Computational biology —> analysis, visualization and simulation of biological data and systems
- Computational finance —> financial modeling, analysis and application development
- Analyzing and accessing data in MATLAB
- Data analysis
MATLAB provides the following interactive tools and command-line functions for data analysis:
-
Interpolation and decimation
-
Extracting sections of data, scaling and averaging
-
Thresholding and smoothing
-
Correlation, Fourier analysis and filtering
-
Finding 1-D peaks, valleys and zeros
-
Basic statistics and curve fitting
-
Matrix analysis
-
Data access
You can read data from many common file formats (such as Microsoft Excel), ASCII text or binary files, images, audio and video files, and scientific formats such as HDF and HDF5.
- Data visualization in MATLAB
- 2-D plotting
Use the 2-D plotting functions to visualize vectors of data:
- Line, area, bar and pie charts
- Direction and velocity plots
- Histograms
- Polygons and surfaces
- Scatter/bubble plots
- Animations
- 3-D plotting and volume visualization
MATLAB provides functions for visualizing 2-D matrices, 3-D vectors and 3-D scalar data. You can also set graphics properties such as camera view angle, perspective, lighting, light source position and transparency. 3-D plotting functions include:
- Surface, contour and mesh plots
- Image plots
- Cone, slice, stream and isosurface plots
- Creating and editing plots interactively
MATLAB has interactive tools for designing and modifying plots. You can:
- Drag and drop new data sets onto a plot
- Change the properties of any object on a plot
- Zoom, rotate, pan, and change the camera angle and lighting
- Add annotations and data tips
- Draw shapes
- Generate MATLAB functions that you can reuse with different data
- Numerical computation in MATLAB
MATLAB provides the following kinds of functions for numerical computation and analysis:
- 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
Installing MATLAB
Thanks to Baidu Jingyan for the tutorial