Introduction to Matlab Programming with Applications

Location: Room 223A, 德田館
Time: 0910 ~ 1230

``All science is dominated by the idea of approximation.''
-- Bertrand Russell (1872-1970)


This short course is designed for the students who want to learn Matlab programming without any experiences before. The students will be introduced to Matlab features and syntaxes. Besides, the fundamentals of programming concepts are delivered with elegant algorithms. You are expected to be capable to implement programs with Matlab independently after this class. Moreover, I expect that you could feel more confident of learning more programming languages and dealing with advanced topics in the future.





Linear algebra

Numerical methods and analysis

Data mining and machine learning

Artificial neural networks and deep learning



Interesting Topics


Additional reading


The major topics covered in the short course, if time permitting, are listed below for your reference.



Schedule [ 236, 237, 238, 242, 244, 245, 247, 249, 251, 252, 253, 254, 256, 258, 260, 261, 262, 263, 264, 265, 266, 268, 272, 273, 275, 277, 279 ]

Date Summary
2017.2.7 program, cpu, memory, memory hierarchy, programming languages (machine code, high-level language), computational solution, algorithms, variables, binary system, data types (integers/floating points), numerical errors, scalars, arrays;
2017.2.8 cells, structures, vectorization, element-by-element operators, rational operators (<, =, >), logical operators (~, &, |), selection (if-elseif-else, switch-case-otherwise), error and error handling (try-catch), for loops;
2017.2.9 while loops, jump statements (break, continue), nested loops, analysis of algorithms;
2017.2.10 profiling, functions, call stack, scope of variable;
2017.2.13 primary/subfunction, anonymous functions, recursion, 2D plots, PROJECT: European call option prices (BlackScholesModel.m, EuroCall_MonteCarloSimulation.m, option pricer, Black–Scholes formula);
2017.2.14 graphics objects, get/set methods, 3D plots, interpolations, file I/O, matrix computation;
2017.2.15 system of linear equations, Gauss elimination, 2D Laplace PDE boundary value problem by finite difference, least square error method, polynomials, polynomial fitting, overfitting, eigenvalue problems (see The World's Largest Eigenvalue Problem), singular value decomposition (image compression by SVD, svd_image_compression.m, SVD applications), gui design;
2017.2.16 regular expression, Simulink tutorial, PROJECT: Blurring and edge detection by using FFT (Discrete Fourier Transform, imageProcessing_LowHighPass.m), The SVM classifier, dataset;
2017.2.17 final exam (matlab/279/sol/); feedback sheet;

Sample Code