You are on page 1of 11

1

Lecture listings for online course

Master MATLAB through guided problem-solving


https://www.udemy.com/master-matlab-through-guided-problem-solving/

How to use this pdf document:

The table provides a list of all videos in this course, with video title, description, and key MATLAB skills. You can:

1. Browse through the list of videos as you would browse through the video list in the online course.
2. Search through the index for a MATLAB function or skill you want to improve, and then find the videos that highlight
those skills.

Note that the numbering of the videos here refers only to the numbering in the index in this document. The videos are in
the same order in the course website, but they are not numbered.
2

Number and Title Description Skills

Course introduction
1. Stages of learning programming How to become a master programmer learning
and completing projects
Getting started
2. Write comments in lines and Learn several ways to comment your code. comments, cells
blocks
3. Using MATLAB for a personal Compute average daily budget based on monthly disp, num2str
budget income/expenses.
4. Personalize MATLAB colors Make your MATLAB experience colorful. options, preferences
5. Start MATLAB with an encour- Specify start-up preferences. startup, set
aging note
Vectors and variables
6. Unsolved: Valid and invalid ma- Determine whether code is valid matrices
trices
7. Working with text (characters Parse and modify text. regexp, cellfun, strfind
and strings)
8. html table from MATLAB code Use MATLAB to write dynamic html code. char, randi, clc, for, disp,
fprintf
9. Round pi to N significant digits Compute and print pi to any number of digits. pi, format, round, disp
10. File/folder information using Use dir and structures to query file/folder infor- dir, cellfun
structures mation
Command statements
11. Unsolved: Compare two while Determine the differences between two loops while
loops
12. Create an upper-triangular ma- Use for-loops and if statements to create a trian- zeros, for, if, sqrt
trix gular matrix.
13. Random count-down timer Implement a random Poisson-like count-down while, randn, for, plot
(Poisson-like) timer.
14. Display the day of 1 January Compute the day of 1 January, any year mod, switch, clock, fprintf, disp

Importing and exporting data


15. Import formatted text data Use fgetl to import data from a formatted text fgetl, strcmpi, while, toggle,
file. str2double, regexp
16. Import Excel-format data Import data from an Excel file and identify miss- xlsread, find, cell2mat, unique,
ing data values. isnan, ind2sub, warning
17. Convert US$ to Euros using up- Import data from the web to convert currencies. urlread, strfind, fprintf, sscanf
to-date info
Translate formulas into code
18. Laplace and log-normal distri- Convert distribution functions into MATLAB. exp, abs, plot, linspace, sqrt,
butions log
19. Complex numbers and Euler’s Make complex numbers, apply Euler’s formula, complex, 1i, exp, sin, abs, an-
formula and test the law of exponents. gle,
20. Piecewise functions Implement a piecewise formula linspace, zeros, length, find,
dsearchn, plot
21. Piecewise function in one line of Produce a piecewise function using one line of dsearchn, sin
code code.
22. Sigmoid function Implement a 3-parameter sigmoid function linspace, exp, get
23. Unsolved: Sigmoid and error Parameterize the sigmoid to look like the ERF erf
function function
24. Circular p-value and its approx- Implement a long and tedious function, and then exp, sqrt, contourf
imation its approximation.
3

Number and Title Description Skills

Descriptive statistics
25. Compute variance and standard Implement algorithms to compute variance and var, std
deviation standard deviation
26. Unsolved: Sort data up and Sort numeric data sort
down
27. Data transformations (log, sqrt, Transform datasets to have different distributions log, sqrt, tiedrank, atanh, hist
rank)
2D plotting
28. Bars and errorbars Generate data to learn about bar and errorbar. bsxfun, subplot, mean, std,
bar, errorbar
29. Dots Make scatterplots to show data. exp, linspace, plot, get/set,
scatter, log
30. Multidimensional data with col- Use color for multidimensional data on a 2D plot. linspace, sin, exp, randn, scat-
ored scatter ter
31. Unsolved: imagesc vs. pcolor Determine the difference between two image plot- imagesc, pcolor
ting functions
32. Histograms Make histograms of log-normal distributions. exp, randn, histogram, hist,
plot, num2str, pause, iqr, title

33. Uncertainty in future money Use patches to visualize the future value of your patch, get/set, deal
(using patch) money.
34. Blend pictures using trans- Use transparency to combine pictures. imagesc, alphadata, imread,
parency meshgrid, interp2, imresize,
sin, logspace, set
35. Vertically stacking data series View multichannel data in a single line plot. eig, sqrt, detrend, cumsum,
bsxfun
36. Distance matrix from generated Compute a distance matrix from mouse-generated ginput, strcmp, numel, bsxfun,
points points. nonzeros, triu
37. Gabor patch marginal his- Create a Gabor patch and show its marginal dis- ndgrid, sin, cos, exp, axes
tograms tributions
3D plotting
38. Colorful cube (a.k.a. the happy Generate a cube of connected nodes. linspace, meshgrid, randn,
Borg ship) scatter3
39. Expanding wavelets with sur- Surface map of wavelets zeros, for, surf, rotate3d
faces
40. Textured Gaussian surfaces Curved surface with various textures. linspace, meshgrid, exp, surf,
shading
41. A ball in 3D color space Define and plot a sphere in RGB space meshgrid, sqrt, ind2sub, scat-
ter3, rotate3d
42. Plane in R3 spanned by two Plot a plane defined by two 3D vectors. ezmesh, get/set, rotate3d,
vectors plot3
43. Complex sinc surface Create a modern-art table using the sinc function sin, complex, surf, abs
44. The prickly Gabor patch Create a Gabor patch and show with its normals ndgrid, mesh, surfnorm
Segmentation
45. Derivative-based time series Identify jumps in a simulated stock market. conv, linspace, diff, zscore,
segmentation num2str
46. Intensity-based image segmen- Segment a smoothed random image based on rel- meshgrid, exp, conv2, bwla-
tation ative intensity. beln, logical
47. identify neurons in a mouse Segment a high-res image to identify brain cells. imread, hist, imagesc, contour,
brain slice bwconncomp, cellfun, false,
continue, log
4

Number and Title Description Skills

Data animations
48. The square chases the mouse A square moves to the mouse-click location. while, get/set, currentpoint,
mouse
49. The magically materializing Animate the famous ”peaks” function to materi- peaks, set, for, pause
peaks alize slowly and randomly.
50. Smooth sailing: The movie Generate a movie of traveling waves on standing
waves.
51. Real-time audio spectrum from Collect mic data and analyze in real time. while, audiorecorder, fft, abs
mic
52. Möbius transformation Watch how the Mobius transformation glides complex, set, imagesc
across the screen.
53. UFO on a sandcastle Create and animate a glowing ball on a surface sphere, Gaussian, meshgrid, set

Graphical user interfaces


54. Interface to select a file Dialog box to select files and folders. uigetfile, uigetdir
55. Input and message boxes Simple GUIs to evalute chocolate consumption. questdlg, inputdlg, msgbox
56. GUI to create random land- User interface to make adjustable 3D landscapes. figure, uicontrol, get/set, func-
scapes tion, fft, handles, align
57. GUIDE to sigmoid parameter Create a GUI that helps understand the sigmoid get/set, exp, GUIDE, handles,
space parameters guidata
Functions and anonymous functions
58. Damped oscillator Create an anonymous function to produce a inline, func2str
damped oscillator
59. Unsolved: damped arcsine Implement a damped arcsine anonymous function exp, asin
and explore its parameter space
60. Find and extract a function core Inspect the median function to find the important median, sort, floor
code, and put that in a separate function.
61. Smooth plotting function with Apply a mean smoothing filter and optionally plot function, nargin, varargin,
options the results. isempty, floor
62. Unsolved: Zscore function write a function that computes the zscore with zscore, mean, std
various options
Find, min, and max
63. Unsolved: manual peak-picking Use datacursor to find a local minimum datacursormode
64. Find negative extrema in a 2D Finding extreme points is not as easy as you might linspace, bsxfun, surf, shading,
function think! max, min, find, sub2ind, plot3

65. Unsolved: Find ridges of a 2D Plot points on the ridges of a 2D landscape find, max, min
surface
66. Find local maxima Indentify local maxima of a sinc function sin, max, plot, dsearchn, diff,
detrend
67. Replace image pixels in an in- Change the color of mid-range intensity pixels sum, hist, log, imagesc,
tensity range
68. Find signal clipping points Mark time points where a signal gets clipped (e.g., diff, mode, find
amp saturation)
Calculus and differential equations
69. Function limits Compute the limits of two functions at interesting limit, fplot, syms
points
70. Function derivatives Use the symbolic toolbox to compute the deriva- syms, diff, subs, pretty
tive and value of a function
71. Function integration Compute integrals and partial integrals, symboli- int
cally and numerically.
72. Solving differential equations Solve an ODE and plot the results diff, dsolve, quiver, meshgrid,
ezplot
5

Number and Title Description Skills

Cleaning univariate time series


73. Threshold median filter Remove extreme noise spikes with median filter. randperm, round, rand, find,
median, min, max
74. Interpolate missing time points Find missing data values and interpolate to fill-in. deal, conv, randperm, bwcon-
ncomp, cellfun, continue, diff

75. Unsolved: all-points median fil- Median-filter a time series at all points, not just median
ter extreme points
76. Spectral mixing interpolation Fill-in missing data based on spectral mixing. deal, cumsum, nan, fft, detrend

77. Polynomial fitting to remove Find an optimal polynomial model order and re- polyval, polyfit, sum, log, min
drifts move slow drifts from data.
78. Unsolved: polynomial fitting to Use polynomial fitting to separate low-frequency polyfit, polyval
isolate drifts signal from high-frequency noise
79. Unsolved: Local maximima in Find local maxima in noisy data diff, find, randn
noisy data
Cleaning multivariate time series
80. Reject data based on extreme Use covariance distances to identify and remove cov, sqrt, histogram
covariance artifact data
81. Effects of averaging on covari- Compare different ways of computing covari- linspace, sin, bsxfun, repmat
ance matrices ance matrices for ”phase-locked” and ”non-phase-
locked” data
82. Simulate tri-component time- Combine forward models of sine, Gaussian, and meshgrid, exp, imagesc, in-
space data linear slope to create spatiotemporal patterns terp1
83. Unsolved: Tri-component data Reproduce the multivariate dataset without any for
without loops for-loops.
84. Space-based single channel in- Corrupt random pixels in space-time data, and ceil, set, scatteredInterpolant
terpolation reconstruct using spatial interpolation
85. Spatial smoothing on a grid of Add random noise to space-time data and remov- conv2, mean
channels. ing using spatial convolution.
86. Spatial sharpening via Lapla- Apply the Laplacian operator to sharpen the conv2
cian. space-time dataset
Time series analysis
87. High-pass filter using FIR filter High-pass filter a time series to remove slow firls, filtfilt, fft, floor, cumsum
trends.
88. Narrow-band filter via Apply a narrowband filter to broadband noise via linspace, exp, ifft, bsxfun,
frequency-domain Gaussian circular convolution. dsearchn, diff, get/set
89. Causal vs. zero-phase-shift fil- See the difference between causal and acausal fil- sin, exp, firls, filter,
ter ter.
90. Line noise notch filter Use FIR filters to remove electrical line noise. fir1, filtfilt, fft,
91. Compute envelope over peaky, Use automated peak-detection to interpolate over randperm, zscore, for, linspace,
noisy signal maximum values. dsearchn, interp1, zoom
92. Frequency-domain mean filter Show that the running-mean filter can be imple- tic/toc, mean, fft, bar
mented (faster) in the frequency domain.
93. Create a ”chirp” (FM signal) Create signals with time-varying frequencies and sin, mean, fft, abs, angle,
compute instantaneous frequency. hilbert, unwrap, diff
94. Detrended fluctuation analysis Compute the DFA (similar to Hurst exponent) of randn, ifft, ceil, cumsum, de-
different colored noise. trend, reshape, sqrt, log10, leg-
end
6

Number and Title Description Skills

Spectral analysis
95. Power spectrum from FFT and Compute the power spectrum of a multispectral fft, abs
Welch’s method signal using two methods
96. Spectrogram of bird call Show the time-frequency response of a bird call audioread, spectrogram,
soundsc
97. Phase-scramble narrowband Produce narrowband random data, then see what ifft, rand
time series happens when you scramble the phases.
98. Hilbert transform Implement the Hilbert transform complex, ifft, 1i
99. Oscillations in human brain Adapt existing code to see the spectral features of fft, abs, mean, linspace
recordings human electrical brain activity.
100. Time frequency analysis via Extract time-frequency power using complex Mor- sin, deal, exp, fft, floor, con-
wavelet convolution let wavelet convolution. tourf, subplot
101. Unsolved: Time-frequency Implement a time-frequency analysis of the spec- exp, sin, 1i, fft
analysis of interpolated signal trally filtered corrupted time series.
Matrix analysis
102. Unsolved: Plot vectors and Plot vectors in 2D and 3D and compute and report sqrt, norm
compute lengths the vector lengths
103. Hermitian vs. regular trans- Learn the difference between Hermitian and regu- transpose, complex
pose lar transpose, and why Hermitian is needed.
104. Create a symmetric matrix: Create a symmetric from asymmetric square ma- transpose, reshape
Additive trix.
105. Create a square symmetric Multiply a rectangular matrix by its transpose to transpose, imagesc, set
matrix: Multiplicative get a square symmetric matrix.
106. MxM matrix with rank M-1 Learn about matrix rank and create a reduced- rank, randn, bsxfun, size
rank matrix.
107. MxN matrix with rank r via Use matrix decomposition to create a reduced- svd, rank, title, norm
SVD rank approximation of a matrix.
108. Create a random Hankel ma- Two ways to create a Hankel matrix from a ran- hankel, numel, subplot
trix dom vector.
109. Unsolved: Element-wise Han- Find an alternative algorithm to create the Hankel hankel, for
kel matrix with mod function matrix using matrix indexing.
110. Unsolved: Create a Toeplitz Repeat the Hankel matrix project but with a toeplitz, hankel
matrix Toeplitz matrix
111. Eigenvectors of a Hankel ma- Explore the rhythmic nature of eigenvectors of a hankel, eig, sort, diff, sign, nu-
trix Hankel matrix. mel, diag
112. Compute a unit vector in some Scale a vector to length=1 to obtain a unit vector norm
direction
113. Orthogonalize a pair of vectors Decompose a vector into parallel and orthogonal norm, orthogonalize, handle-
components, relative to some other vector. visibility
114. Gram-Schmidt algorithm Create an orthogonal matrix using the Gram- dot, norm, qr
Schmidt algorithm
115. Matrix inverse via QR decom- Use QR decomposition to compute the inverse of qr, inv
position a matrix.
116. Visualize the quadratic form Compute and make a surface of the quadratic form for, zeros, surf, rotate3d, shad-
of a 2x2 matrix of a 2x2 matrix. ing
117. Eigenvectors and quadratic Compute and plot the eigenvectors of a matrix, eig
form and display on top of the quadratic form
118. PCA of low-rank space-time Generate 3D data and perform a principal com- eig, meshgrid
data ponents analysis
119. Covariance shrinkage regular- Explore the effects of shrinkage of eigenvalues and meshgrid, exp, reshape, pause,
ization in PCA eigenvectors eig, sort, for, axis
Circular distributions and analyses
120. Circular histogram Generate histograms of uniform and bulged phase sin, angle, hilbert, polarplot,
angle distributions. rose
121. Compute and plot mean vec- Comptue the average of a set of unit vectors. angle, hilbert, mean, exp, po-
tor length larplot
122. Phase difference between two Extract phase angles from two signals, and com- angle, abs, hilbert, sin, de-
distributions pute the variance of the phase angle differences. trend, set
7

Number and Title Description Skills

Fractal time series and images


123. Unsolved: Sierpinksi triangle Convert XY indices into a full matrix. zeros, imagesc, round
as dense matrix
124. Brownian motion Show Brownian motion (random walk) in the time cumsum, fft, randn
and frequency domains.
125. Cantor set and devil’s stair- Compute the Cantor’s set and its accompanying repmat, reshape, plot
case devil’s staircase
126. Unsolved: Initialize the Can- Repeat the Cantor set with indexing instead of zeros, for, cat
tor set concatenation.
127. Mandelbrot set Create the ”quadratic map,” which leads to the complex, meshgrid
famous fractal flower.
128. Weierstrass function Explore a member of the Weierstrass function cos
family.
129. Fractal circles and bubbles Create circles and bubbles with radii drawn from sin, cos, sphere, surf
a scale-free distribution
Nonparametric statistics
130. 2D space of Wilcoxon effect Explore the mean-deviation space of Wilcoxon ef- contourf, colorbar, ranksum
sizes fects sizes
131. KL divergence of two distribu- Compute two probability densities and the KL di- histcounts, isfinite
tions vergence between them.
132. 2D space of KL divergences Generate a space of KL distances based on distri- histcounts, colormap
bution parameters.
133. Permutation testing Use permutation testing to determine whether two histogram, subplot
distributions are significantly different.
134. Bootstrapping for confidence Compute 95% confidence intervals around the mean, subplot, hist
intervals mean of a distribution
135. Unsolved: bootstrapping me- Create a complex function, split the distribution randsample, histogram, prctile,
dians into three groups, and compute the median for complex, isfinite
each subgroup.
Nonlinear model fitting
136. Fit a Gaussian to a distribu- Generate noisy Gaussian data, and find the pa- exp, function handles, fmin-
tion rameters that make a model best fit the data. search
137. Two-piece linear regression Generate random data drawn from a triangle- sqrt, hist, fminsearch
distribution, and then piece a two-piece linear re-
gression to the data.
138. Fit a sine wave Use several nonlinear search methods to identify sin, fminsearch, plot
the three sine-wave parametres of a given sine
curve.
139. Fit a circle to a noisy ring Fit rings to noisy circles and ovals. cos, lsqnonlin, tic, toc, randn,
fminsearch
Index

1i, 19, 98, 101 eig, 35, 111, 117–119


erf, 23
abs, 18, 19, 43, 51, 93, 95, 99, 122 errorbar, 28
align, 56 exp, 18, 19, 22, 24, 29, 30, 32, 37, 40, 46, 57, 59, 82, 88,
alphadata, 34 89, 100, 101, 119, 121, 136
angle, 19, 93, 120–122 ezmesh, 42
asin, 59 ezplot, 72
atanh, 27
audioread, 96 false, 47
audiorecorder, 51 fft, 51, 56, 76, 87, 90, 92, 93, 95, 99–101, 124
axes, 37 fgetl, 15
axis, 119 figure, 56
filter, 89
bar, 28, 92 filtfilt, 87, 90
bsxfun, 28, 35, 36, 64, 81, 88, 106 find, 16, 20, 64, 65, 68, 73, 79
bwconncomp, 47, 74 fir1, 90
bwlabeln, 46 firls, 87, 89
floor, 60, 61, 87, 100
cat, 126 fminsearch, 136–139
ceil, 84, 94 for, 8, 12, 13, 39, 49, 83, 91, 109, 116, 119, 126
cell2mat, 16 format, 9
cellfun, 7, 10, 47, 74 fplot, 69
cells, 2 fprintf, 8, 14, 17
char, 8 func2str, 58
clc, 8 function, 56, 61
clock, 14 function handles, 136
colorbar, 130
Gaussian, 53
colormap, 132
get, 22
comments, 2
get/set, 29, 33, 42, 48, 56, 57, 88
complex, 19, 43, 52, 98, 103, 127, 135
ginput, 36
continue, 47, 74
guidata, 57
contour, 47
GUIDE, 57
contourf, 24, 100, 130
conv, 45, 74 handles, 56, 57
conv2, 46, 85, 86 handlevisibility, 113
cos, 37, 128, 129, 139 hankel, 108–111
cov, 80 hilbert, 93, 120–122
cumsum, 35, 76, 87, 94, 124 hist, 27, 32, 47, 67, 134, 137
currentpoint, 48 histcounts, 131, 132
histogram, 32, 80, 133, 135
datacursormode, 63
deal, 33, 74, 76, 100 if, 12
detrend, 35, 66, 76, 94, 122 ifft, 88, 94, 97, 98
diag, 111 imagesc, 31, 34, 47, 52, 67, 82, 105, 123
diff, 45, 66, 68, 70, 72, 74, 79, 88, 93, 111 imread, 34, 47
dir, 10 imresize, 34
disp, 3, 8, 9, 14 ind2sub, 16, 41
dot, 114 inline, 58
dsearchn, 20, 21, 66, 88, 91 inputdlg, 55
dsolve, 72 int, 71

9
10 INDEX

interp1, 82, 91 randn, 13, 30, 32, 38, 79, 94, 106, 124, 139
interp2, 34 randperm, 73, 74, 91
inv, 115 randsample, 135
iqr, 32 rank, 106, 107
isempty, 61 ranksum, 130
isfinite, 131, 135 regexp, 7, 15
isnan, 16 repmat, 81, 125
reshape, 94, 104, 119, 125
learning, 1 rose, 120
legend, 94 rotate3d, 39, 41, 42, 116
length, 20 round, 9, 73, 123
limit, 69
linspace, 18, 20, 22, 29, 30, 38, 40, 45, 64, 81, 88, 91, 99 scatter, 29, 30
log, 18, 27, 29, 47, 67, 77 scatter3, 38, 41
log10, 94 scatteredInterpolant, 84
logical, 46 set, 5, 34, 49, 52, 53, 84, 105, 122
logspace, 34 shading, 40, 64, 116
lsqnonlin, 139 sign, 111
sin, 19, 21, 30, 34, 37, 43, 66, 81, 89, 93, 100, 101, 120,
matrices, 6 122, 129, 138
max, 64–66, 73 size, 106
mean, 28, 62, 85, 92, 93, 99, 121, 134 sort, 26, 60, 111, 119
median, 60, 73, 75 soundsc, 96
mesh, 44 spectrogram, 96
meshgrid, 34, 38, 40, 41, 46, 53, 72, 82, 118, 119, 127 sphere, 53, 129
min, 64, 65, 73, 77 sqrt, 12, 18, 24, 27, 35, 41, 80, 94, 102, 137
mod, 14 sscanf, 17
mode, 68 startup, 5
mouse, 48 std, 25, 28, 62
msgbox, 55 str2double, 15
strcmp, 36
nan, 76 strcmpi, 15
nargin, 61 strfind, 7, 17
ndgrid, 37, 44 sub2ind, 64
nonzeros, 36 subplot, 28, 100, 108, 133, 134
norm, 102, 107, 112–114 subs, 70
num2str, 3, 32, 45 sum, 67, 77
numel, 36, 108, 111 surf, 39, 40, 43, 64, 116, 129
surfnorm, 44
options, 4 svd, 107
orthogonalize, 113 switch, 14
syms, 69, 70
patch, 33
pause, 32, 49, 119 tic, 139
pcolor, 31 tic/toc, 92
peaks, 49 tiedrank, 27
pi, 9 title, 32, 107
plot, 13, 18, 20, 29, 32, 66, 125, 138 toc, 139
plot3, 42, 64 toeplitz, 110
polarplot, 120, 121 toggle, 15
polyfit, 77, 78 transpose, 103–105
polyval, 77, 78 triu, 36
prctile, 135
preferences, 4 uicontrol, 56
pretty, 70 uigetdir, 54
uigetfile, 54
qr, 114, 115 unique, 16
questdlg, 55 unwrap, 93
quiver, 72 urlread, 17

rand, 73, 97 var, 25


randi, 8 varargin, 61
INDEX 11

warning, 16
while, 11, 13, 15, 48, 51

xlsread, 16

zeros, 12, 20, 39, 116, 123, 126


zoom, 91
zscore, 45, 62, 91

You might also like