Semester- III
BASIC PROGRAMMING WITH MATLAB
Course Code : 22EIL384 CIE : 50 Marks
Credits: L:T:P : 0:0:2 SEE : 50 Marks
Total Hours : 2Hrs SEE Duration : 2.00 Hours
Course Learning Objectives:
1 To understand numerical methods using MATLAB
2 Analysing and interpreting results
3 Implementing algorithms and codes in MATLAB
4 To solve real world engineering and scientific problems
Course Outcomes At the end of the course students will be able to
1 Demonstrate the proficiency of engineering computational platforms
2 Write algorithms to solve different arithmetic with MATLAB platform
3 Understand and working with solving ODS’s, plotting and data handling with MATLAB
4 Understand and learn various MATLAB functions and solver
Mapping of Course outcomes to Program outcomes:
PO1 PO2 PO PO PO PO6 PO PO PO PO1 PO PO PSO PSO PS
3 4 5 7 8 9 0 11 12 1 2 O
3
CO1 3 3 3
CO2 3 3 3
CO3 3 3 3
CO4 3 3
Course Contents
Sl.No Course Contents
1. MATLAB Basics: MATLAB introduction and use of command window as a calculator.
Arithmetic operations. Looping and control structures.
2. Writing m-file: Write a m-file with use of for loop and while loop
3. Root finding: Write a program to solve system of nonlinear equations using Newton’s
method/Secant method and compare the result with in-built command fsolve.
4. Solution of ODE: Write a program to solve system of ordinary differential equations and
compare the solution with in-built command ODE45 and for symbolic solution using
dsolve.
5. Plotting: X-Y plotting functions, subplots, interactive plotting, regression, 3-D plots. Write
a program to solve system of non-linear equations and plot the solution process.
6. Matrix and Vectorization: Entering matrix and vectors, column and row operation with
matrix, matrix operations and commands related to matrix operations. Write a program to
find inverse of a given matrix or solution of linear system, compare the result with in-built
command inv and linsolve
7. Parameterized functions: Writing a basic function, passing parameters in function, and
passing function in a function.
8. Data and file handling: Data types and data manipulations, reading from and writing to
external text files. Importing data from spreadsheets. Reading images.
9. Simulink: Introduction to Simulink, creating simple feedback model in Simulink. Input and
output blocks, scope.
10. Embedded function block: Writing a function and importing in a Simulink blocks.
11. GUI: Creating a simple GUI for radio buttons, bars, panels etc.
Text Books
1 William J Palm, ”A concise introduction to MATLAB” McGraw-Hill 2008
Reference Books
1. Stormy Attaway, ”MATLAB A practical Introduction to programming and problem
solving,6 th Edition, Butterworth-Heinemann, 2022