Documentation Center

  • Trial Software
  • Product Updates

MATLAB Examples

Getting Started

Getting Started with MATLAB (5 min, 6 sec)Getting Started with MATLAB (5 min, 6 sec)Video
Working in The Development Environment (5 min, 21 sec)Working in The Development Environment (5 min, 21 sec)Video

Language Fundamentals

Create a Structure ArrayScript
Introducing MATLAB Fundamental Classes (Data Types) (5 min, 46 sec)Introducing MATLAB Fundamental Classes (Data Types) (5 min, 46 sec)Video
Introducing Structures and Cell Arrays (5 min, 4 sec)Introducing Structures and Cell Arrays (5 min, 4 sec)Video
Manipulating Multidimensional ArraysScript
Working with Arrays (8 min, 16 sec)Working with Arrays (8 min, 16 sec)Video

Mathematics

Integer ArithmeticScript
Single Precision MathScript
Creating and Editing Delaunay TriangulationsScript
Predicting the US PopulationScript
FFT for Spectral AnalysisScript
Square Wave from Sine WavesScript
Using FFTScript
Grid-based InterpolationScript
Splines in Two DimensionsScript
Finite Difference LaplacianScript
Matrix ExponentialsScript
Differential EquationsScript
Numerical Integration of Differential EquationsScript
Optimal Fit of a Nonlinear FunctionScript
Graphical Representation of Sparse MatricesScript
Graphs and MatricesScript
Sparse MatricesScript
Controlling Random Number GenerationScript
Controlling Random Number Generation (5 min, 54 sec)Controlling Random Number Generation (5 min, 54 sec)Video
Basic Matrix OperationsScript
Graphical Approach to Solving InequalitiesScript
Loma Prieta EarthquakeScript
Matrix ManipulationScript

Graphics

2-D PlotsScript
3-D PlotsScript
Boy's SurfaceScript
Changing TransparencyScript
Convert Between Image Sequences and VideoScript
Creating a Basic Plot Interactively (5 min, 6 sec)Creating a Basic Plot Interactively (5 min, 6 sec)Video
Creating Plots from the Workspace Browser (3 min, 23 sec)Creating Plots from the Workspace Browser (3 min, 23 sec)Video
CrullerScript
Earth's TopographyScript
Four Linked ToriScript
Functions of Complex VariablesScript
Images and MatricesScript
Interactive Plot Creation with the Plot Tools (7 min, 12 sec)Interactive Plot Creation with the Plot Tools (7 min, 12 sec)Video
Klein BottleScript
Klein BottleScript
Linked Plots and Data Brushing (9 min, 26 sec)Linked Plots and Data Brushing (9 min, 26 sec)Video
LogoScript
ModesScript
QuiverScript
Spherical Surface HarmonicScript
Three-Dimensional KnotScript
Using Basic Plotting Functions (5 min, 8 sec)Using Basic Plotting Functions (5 min, 8 sec)Video
Viewing a PennyScript
Volume VisualizationScript

Programming

Anonymous FunctionsScript
Developing Classes Overview (10 min, 48 sec)Developing Classes Overview (10 min, 48 sec)Video
Function FunctionsScript
Introducing Enumerations (7 min, 33 sec)Introducing Enumerations (7 min, 33 sec)Video
Nested FunctionsScript
Programming with COM on Windows®Script
Publishing Code from the Editor (5 min, 15 sec)Publishing Code from the Editor (5 min, 15 sec)Video
Writing a MATLAB Program (4 min, 57 sec)Writing a MATLAB Program (4 min, 57 sec)Video

Data Import and Export

Importing Data from Files Programmatically (3 min, 55 sec)Importing Data from Files Programmatically (3 min, 55 sec)Video
Importing Data from Text Files Interactively (6 min, 17 sec)Importing Data from Text Files Interactively (6 min, 17 sec)Video
Importing Spreadsheets (4 min, 34 sec)Importing Spreadsheets (4 min, 34 sec)Video
Reading Arbitrary Format Text Files with TEXTSCANScript
Using the MAT-file Object to Load and Save Part of an Array (6 min, 9 sec)Using the MAT-file Object to Load and Save Part of an Array (6 min, 9 sec)Video

Creating Graphical User Interfaces

Creating a GUI with GUIDE (10 min, 28 sec)Creating a GUI with GUIDE (10 min, 28 sec)Video
Displaying Matrix Data in a GUIScript

New Features Videos

Release 2014a

Pop-up Command History (2 min, 41 sec)Pop-up Command History (2 min, 41 sec)Video
Webcam Support (2 min, 54 sec)Webcam Support (2 min, 54 sec)Video

Release 2013b

Tables and Categorical Arrays (6 min, 9 sec)Tables and Categorical Arrays (6 min, 9 sec)Video

Release 2013a

MATLAB Unit Testing Framework (9 min, 24 sec)MATLAB Unit Testing Framework (9 min, 24 sec)Video

Release 2012b

New MATLAB Desktop (5 min, 19 sec)New MATLAB Desktop (5 min, 19 sec)Video
Import Tool Enhancements for Text Files (6 min, 21 sec)Import Tool Enhancements for Text Files (6 min, 21 sec)Video
Suggestions for Mistyped Commands (2 min, 11 sec)Suggestions for Mistyped Commands (2 min, 11 sec)Video
Packaging and Installing MATLAB Apps (2 min, 58 sec)Packaging and Installing MATLAB Apps (2 min, 58 sec)Video
Redesigned Help (5 min, 43 sec)Redesigned Help (5 min, 43 sec)Video

Release 2012a

New Variable Editor Features (2 min, 17 sec)New Variable Editor Features (2 min, 17 sec)Video
Syntax Highlighting for Commented MATLAB Code in Published Scripts (2 min, 5 sec)Syntax Highlighting for Commented MATLAB Code in Published Scripts (2 min, 5 sec)Video

Release 2011b

Spreadsheet Import Tool (6 min, 50 sec)Spreadsheet Import Tool (6 min, 50 sec)Video
Automatic Variable and Function Renaming (2 min, 52 sec)Automatic Variable and Function Renaming (2 min, 52 sec)Video
MAT-File Object (6 min, 9 sec)MAT-File Object (6 min, 9 sec)Video

Release 2011a

Plot Catalog Enhancements (4 min, 13 sec)Plot Catalog Enhancements (4 min, 13 sec)Video
Support Request Submission Feature (2 min, 05 sec)Support Request Submission Feature (2 min, 05 sec)Video
RNG Function for Controlling Random Number Generation (5 min, 50 sec)RNG Function for Controlling Random Number Generation (5 min, 50 sec)Video

Release 2010b

Variable and Subfunction Highlighting in the Editor (4 min, 21 sec)Variable and Subfunction Highlighting in the Editor (4 min, 21 sec)Video
Zip File Browsing in the Current Folder Browser (2 min, 13 sec)Zip File Browsing in the Current Folder Browser (2 min, 13 sec)Video
File Preview Enhancements in the Current Folder Browser (1 min, 18 sec)File Preview Enhancements in the Current Folder Browser (1 min, 18 sec)Video
Enumeration Classes (7 min, 33 sec)Enumeration Classes (7 min, 33 sec)Video
VideoWriter Object (3 min, 17 sec)VideoWriter Object (3 min, 17 sec)Video

Release 2010a

Development Environment (5 min, 2 sec)Development Environment (5 min, 2 sec)Video

Release 2009b

MATLAB File Exchange Access (4 min, 51 sec)MATLAB File Exchange Access (4 min, 51 sec)Video
Desktop Plotting Features (3 min, 26 sec)Desktop Plotting Features (3 min, 26 sec)Video
Current Folder Browser Enhancements (2 min, 17 sec)Current Folder Browser Enhancements (2 min, 17 sec)Video
Customizable Keyboard Shortcuts (4 min, 15 sec)Customizable Keyboard Shortcuts (4 min, 15 sec)Video
Help Browser Enhancements (1 min, 21 sec)Help Browser Enhancements (1 min, 21 sec)Video
Publishing to PDF (0 min, 38 sec)Publishing to PDF (0 min, 38 sec)Video
Language and Programming (2 min, 49 sec)Language and Programming (2 min, 49 sec)Video

Release 2009a

Development Environment (1 min, 32 sec)Development Environment (1 min, 32 sec)Video
Mathematics (7 min, 50 sec)Mathematics (7 min, 50 sec)Video
External Interfacing (8 min, 39 sec)External Interfacing (8 min, 39 sec)Video

Release 2008b

Development Environment (5 min, 25 sec)Development Environment (5 min, 25 sec)Video
Language and Programming (7 min, 28 sec)Language and Programming (7 min, 28 sec)Video
Mathematics (7 min, 50 sec)Mathematics (7 min, 50 sec)Video

Release 2008a

Development Environment (6 min, 56 sec)Development Environment (6 min, 56 sec)Video
Object Oriented Programming (11 min, 11 sec)Object Oriented Programming (11 min, 11 sec)Video
Other Language and Programming (4 min, 56 sec)Other Language and Programming (4 min, 56 sec)Video
Graphics and GUI Building (9 min, 31 sec)Graphics and GUI Building (9 min, 31 sec)Video

Release 2007b

Performance and Large Data Set Handling (4 min, 57 sec)Performance and Large Data Set Handling (4 min, 57 sec)Video
Development Environment (3 min, 39 sec)Development Environment (3 min, 39 sec)Video
Language and Programming (2 min, 9 sec)Language and Programming (2 min, 9 sec)Video
Mathematics (1 min, 6 sec)Mathematics (1 min, 6 sec)Video
File I/O and External Interfacing (3 min, 2 sec)File I/O and External Interfacing (3 min, 2 sec)Video
Graphics and GUI Building (2 min, 47 sec)Graphics and GUI Building (2 min, 47 sec)Video
Was this topic helpful?