Syllabus
Course Code: MMATH20 -202 Course Name: Computer Programming with MATLAB |
||
MODULE NO / UNIT | COURSE SYLLABUS CONTENTS OF MODULE | NOTES |
---|---|---|
1 | Introduction: Basics of programming; Anatomy of a program; Constants; Characters; Variables;
Data types; Assignments; Operators; functions; Examples of expressions; Entering long
statements; Command line editing. Good programming style. Working with vectors: Defining a Vector, Accessing elements within a vector, Basic operations on vectors; Mathematical functions; Strings; String functions; Cell array; Creating cell array; Concatenation. Working with Matrices: Generating matrices; Mathematical operations and functions; Deleting rows /columns; Linear algebra; Arrays; Multivariate data; Scalar expansion; Logical subscripting; Input and output: Save/Load functions, M-files, The find function; The format function; Suppressing output; |
|
2 | Flow Control: if and else, switch and case, for loop, while loop, continue, break, try – catch,
return. Data Structures: Multidimensional arrays; Cell arrays, Characters and text; Structures, Scripts and Functions: Scripts; Functions; Types of functions; Global variables; Passing string arguments to functions; The eval function; Function handles; Function functions; Vectorization; Preallocation. |
|
3 | Graphics: Plotting process; Graph components; Figure tools; Arranging graphs within a figure;
Selecting plot types; Plot editing mode, Using functions to edit graphs; Modifying a graph data
source; Modify a graph to enhance the presentation; Printing a graph; Exporting a graph. Basic Plotting Functions: Creating a plot; Multiple data sets in one graph; Specifying line styles and colors; Plotting lines and markers; Imaginary and complex data; Adding plots to existing graph; Figure windows; Multiple plots in one figure; Controlling the axes; Axis labels and titles; Saving figures. Mesh and Surface Plots: Visualizing functions of two variables; Reading/writing images. Printing and Handle Graphics: Using the handle; Graphics object; Setting object Properties; Specifying the axes or figure, Finding the handles of existing objects. Animations: Erase mode method, Creating movie |
|
4 | Symbolic Math: Symbolic objects; Creating symbolic variables and expressions; The findsym
Command; The default symbolic variable; Constructing real and complex variables; Creating
abstract functions; Creating symbolic math functions; Creating an M-file. Calculus: Limits; Differentiation; Integration; Symbolic summation; Taylor series; Examples; Simplifications and substitutions, Variable-precision arithmetic examples. Linear Algebra: Basic algebraic operations; Linear algebraic operations; Eigenvalues; Jordan canonical form; Singular value decomposition; Eigenvalue trajectories. Solving Equations: System of algebraic equations, System of differential equation |