Professional Documents
Culture Documents
COURSE HANDOUT
Course Modules
1 Introduction to Programming and MATLAB To understand the notion of Data and Computation,
to understand the use of MATLAB software to use it
for programming in the course.
3 Arrays: Representation and Operations Learn to create and access row and columns vectors,
Creating and accessing matrices and learn few simple
matrix functions
5 Problem solving: Selection Constructs To learn and use conditional Expressions (using
Relational Operators, Logic Operators, Logical
Functions) and conditional statements (if construct,
switch-case construct) in MATLAB
6 Problem solving: Iterative Constructs To learn and use iterative statements (while loop, for
loop, break & continue statements) for problem
solving.
10 Structured Data: Structures, Cell Arrays To learn to organize and represent collection of
related data using the structures and cell arrays in
MATLAB
Text Book(s)
T1 Stephen J. Chapman Matlab Programming for Engineers, 4th Ed. Cengage Learning.
R1 Attaway, Stormy. Matlab: A Practical Introduction to Programming and Problem Solving. Butterworth-
Heinemann.
R2 R.J. Dromey. Problem Solving using Computer. Prentice Hall India. Eastern Economy Edition. 2002.
Contact Session (in addition to the Introduction to the course, Operating methodology
brief overview to the recorded
Introduce the MATLAB environment, Using documentation
content)
Lecture 2: (Module #2: Elements of MATLAB programming #4: Arrays: Representation and Operations)
Contact Session (in addition to the Exercises on various methods of arrays creation and initialization,
brief overview to the recorded Linear Addressing, Accessing and modifying sub arrays, Arrays and
content) Matrix Operations
Contact Sessions (in addition to Exercises on designing algorithms, drawing flowcharts using
the brief overview to the recorded sequence, selection, and iterative constructs.
content) Writing small programs involving I/O and executing it.
Contact Sessions (in addition to Exercises in writing conditions using relational, logical operations,
the brief overview to the recorded writing programs involving if statement, if-else, if- elseif and switch
content) case statements in MATLAB
Contact Sessions (in addition to Write programs involving for-loop, while-loop and nested loops.
the brief overview to the recorded
Exercises in vectorizing programs involving loops and decisions.
content)
Contact Sessions (in addition to Implementing MATLAB string manipulation functions, as scripts
the brief overview to the recorded using iteration.
content) Plotting functions using plot function.
Contact Sessions (in addition to Exercises in solving problems using top down design, implementing
the brief overview to the recorded modules using functions
content)
Contact Sessions (in addition to Exercises in writing functions in which uses optional parameters,
the brief overview to the recorded global variables, and persistent data and sub functions.
content)
Topics(Recorded Lectures Number) Anonymous functions (RL 11.1), Function Functions (RL 11.2)
Contact Sessions (in addition to Exercises in writing anonymous functions, function handles, and
the brief overview to the recorded function functions in MATLAB
content)
Contact Sessions (in addition to Exercises in writing recursive and iterative programs for problems
the brief overview to the recorded
content)
Contact Sessions (in addition to Exercises in writing programs using structures, arrays of structures,
the brief overview to the recorded writing functions with structures as arguments, and returning from
content) functions
Cell Arrays (RL 13.1), Creating and Accessing Cell Arrays (RL 13.2),
Significance of Cell Arrays (RL 13.3), Passing Cell Arrays and
Topics(Recorded Lectures Number)
returning from Functions (RL 13.4), List of strings Representations
using Cell Arrays (RL 13.5)
Contact Sessions (in addition to Exercises in writing programs using cell arrays, accessing elements,
the brief overview to the recorded writing functions with cell arrays as arguments, and returning from
content) functions
Learning Objectives File I/O: Saving and retrieving files, variables, workspaces.
Formatted output using fprintf
Topics(Recorded Lectures Number) Files: Introduction (RL 14.1), Preserving Variables and Data (RL 14.2)
Contact Sessions (in addition to Exercises in writing matrix as files, retrieving and manipulating.
the brief overview to the recorded Exercises in formatted output using fprintf on matrices, for various
content) formats, and data.
Topics(Recorded Lectures Number) File Opening and closing(RL 14.3), Formatted Functions (RL 14.4)
Contact Sessions (in addition to Programs which manipulate formatted files, reading input data from
the brief overview to the recorded formatted files, writing output, modifying contents in files
content)
Binary I/O functions (RL 14.5), Binary I/O vs Formatted I/O (RL 14.6),
Topics(Recorded Lectures Number)
File Positioning and Status Functions (RL 14.7)
Contact Sessions (in addition to Programs using binary File I/O and Random access functions
the brief overview to the recorded
content)
EC-2 Mid-Semester Test Closed Book 2 hours 35% 25/09/2016 (FN) 10 AM – 12 Noon
EC-3 Comprehensive Exam Open Book 3 hours 50% 06/11/2016 (FN) 9 AM – 12 Noon
Syllabus for Comprehensive Exam (Open Book): All topics (Session Nos. 1 to 18)
Students are expected to visit the Elearn portal on a regular basis and stay up to date with the latest announcements
and deadlines.
Contact sessions: Students should attend the online lectures as per the schedule provided on the Elearn portal.
Evaluation Guidelines:
2. The online contact sessions are completely based on Script & Function files(MATLAB Code) developed
meticulously to illustrate the basic concepts and their applications. These files will be made available to the
students right after the first lecture. These can be practised at any time.
3. Students will attempt them through the course pages on the Elearn portal. Announcements will be made on
the portal, in a timely manner.
4. For Closed Book tests: No books or reference material of any kind will be permitted.
5. For Open Book exams: Use of books and any printed / written reference material (filed or bound) is permitted.
However, loose sheets of paper will not be allowed. Use of calculators is permitted in all exams.
Laptops/Mobiles of any kind are not allowed. Exchange of any material is not allowed.
6. If a student is unable to appear for the Regular Test/Exam due to genuine exigencies, the student should
follow the procedure to apply for the Make-Up Test/Exam which will be made available on the Elearn portal.
The Make-Up Test/Exam will be conducted only at selected exam centres on the dates to be announced later.
It shall be the responsibility of the individual student to be regular in maintaining the self study schedule as given in
the course handout, attend the online lectures, and take all the prescribed evaluation components such as
Assignment/Quiz, Mid-Semester Test and Comprehensive Exam according to the evaluation scheme provided in the
handout.
RECORDED Lectures by Mr. S. P. VIMAL
RL 2.1 https://www.youtube.com/watch?v=o7nRmnIJtFo
RL 2.2 https://www.youtube.com/watch?v=ztc2jXZFOoI
RL 2.3 https://www.youtube.com/watch?v=xoS_lnmPlNA
RL 3.0 https://www.youtube.com/watch?v=kqti5ps_KLQ
RL 3.1 https://www.youtube.com/watch?v=eipo5tyXmk4
RL 3.2 https://www.youtube.com/watch?v=I7V9Ywjsq7E
RL 3.3 https://www.youtube.com/watch?v=yHA1fkT2QnY
RL 3.4 https://www.youtube.com/watch?v=JKFgf665g3U
RL 3.5 https://www.youtube.com/watch?v=dK60JMnuvMs
RL 4.0 https://www.youtube.com/watch?v=a27nkXTPzzc
RL 4.1 https://www.youtube.com/watch?v=iJ9XQb3tJWw
RL 4.2 https://www.youtube.com/watch?v=kWDDN0nXSOk
RL 5.0 https://www.youtube.com/watch?v=0BWVLH5odII
RL 5.1 https://www.youtube.com/watch?v=AX5Gry3ZXcE
RL 5.2 https://www.youtube.com/watch?v=s1bthqos-cQ
RL 6.0 https://www.youtube.com/watch?v=sBnV6MgpBxs
RL 6.1.1 https://www.youtube.com/watch?v=Vgi5dYT4p9c
RL 6.1.2 https://www.youtube.com/watch?v=RgDyRMqc_c4
RL 6.1.3 https://www.youtube.com/watch?v=CiyAJQjLG9k
RL 6.2.1 https://www.youtube.com/watch?v=t8iAsO8IKQs
RL 6.2.2 https://www.youtube.com/watch?v=RgKQc0aeoFQ
RL 6.3.1 https://www.youtube.com/watch?v=sgSAD9m8N7Q
RL 6.3.2 https://www.youtube.com/watch?v=WF2RNJUX2GM
RL 7.0 https://www.youtube.com/watch?v=wt9HButEuoM
RL 7.1.1 https://www.youtube.com/watch?v=8mPbvpPr62Q
RL 7.1.2 https://www.youtube.com/watch?v=UuEHlcLZpgM
RL 7.2 https://www.youtube.com/watch?v=0ImaHn5nl_o
RL 7.3 https://www.youtube.com/watch?v=Wk_VR8avi8E
RL 7.4.1 https://www.youtube.com/watch?v=0hZrqMb_BfY
RL 8.0 https://www.youtube.com/watch?v=9F9thrQf6Jk
RL 8.1 https://www.youtube.com/watch?v=04lEOW3wHbk
RL 8.2.1 https://www.youtube.com/watch?v=KkX6_a-o5eg
RL 8.2.2 https://www.youtube.com/watch?v=tnBE4ZzF0n0
RL 8.2.3 https://www.youtube.com/watch?v=gFZaAvRib3Q
RL 8.2.4 https://www.youtube.com/watch?v=CwJRoYxP6Eg
RL 9.0 https://www.youtube.com/watch?v=iKSWt5l-nzU
RL 9.1 https://www.youtube.com/watch?v=bCj0xtTPlFM
RL 9.2 https://www.youtube.com/watch?v=uwhUXQXmQ2M
RL 10.1 https://www.youtube.com/watch?v=0t6wM2td_Fk
RL 10.2.1 https://www.youtube.com/watch?v=I9z3QSa7Wec
RL 10.2.2 https://www.youtube.com/watch?v=JyWv4ZGL0LM
RL 10.3 https://www.youtube.com/watch?v=Ti2jYyoCvSI
RL 10.4 https://www.youtube.com/watch?v=nZxMkQM8LTs
RL 10.5 https://www.youtube.com/watch?v=YGcOUd-iREQ
RL 10.6 https://www.youtube.com/watch?v=ikC0UjwT0HQ
RL 10.7 https://www.youtube.com/watch?v=vJOf_5m4Iko
RL 11.1 https://www.youtube.com/watch?v=mw8SUfBLyDY
RL 11.2 https://www.youtube.com/watch?v=Oemyi0O-q_c
RL 11.3 https://www.youtube.com/watch?v=7utyABvzzYQ
RL 12.0 https://www.youtube.com/watch?v=rLrY0CrqKxU
RL 12.1 https://www.youtube.com/watch?v=WT-UKoez_Nw
RL 12.2 https://www.youtube.com/watch?v=xDbWhJoT5XM
RL 12.3 https://www.youtube.com/watch?v=8LDDe6MubAI
RL 12.4 https://www.youtube.com/watch?v=eHQJ5yzE7Ek
RL 13.0 https://www.youtube.com/watch?v=gBonTYluOiE
RL 13.1 https://www.youtube.com/watch?v=RsHzAdy-jQ8
RL 13.2 https://www.youtube.com/watch?v=BRPMGjoUaRg
RL 13.3 https://www.youtube.com/watch?v=lkaOmFCLMUQ
RL 14.0 https://www.youtube.com/watch?v=4Q57anBC4Vg
RL 14.1 https://www.youtube.com/watch?v=q6qXAbl_yi8
RL 14.2 https://www.youtube.com/watch?v=PdAg-5Zabbs
RL 14.3.1 https://www.youtube.com/watch?v=nhXDpwonC8k
RL 14.3.2 https://www.youtube.com/watch?v=QzOU1_oJBlA
RL 14.3.3 https://www.youtube.com/watch?v=ycX4-6DnDhg
RL 14.3.4 https://www.youtube.com/watch?v=7MAl4r0qwF4
RL 14.4 https://www.youtube.com/watch?v=XkANPZJGmJY
RL 14.5 https://www.youtube.com/watch?v=0mSP66LAxco
RL 14.6 https://www.youtube.com/watch?v=Oa30yKvORNk
folder name is essentially the name of the .7z file downloaded, without the
extension
on the end that represents the release time/date.
1. Go to the root of your C:\ drive and create a new folder called "Octave"
2. Go within that Octave folder and create a folder called:
"Octave3.6.4_gcc4.6.2"
3. You should now have C:\Octave\Octave3.6.4_gcc4.6.2
both folders created. Both will be empty folders.
4. Take the .7z file you download and use 7zip or winzip to extract it
into the "Octave" folder. Note that you do NOT extract it into the
Octave3.6.4_gcc4.6.2 folder but rather just the Octave folder located in
C:\Octave
You can right-click-drag into the "Octave" folder and use the "Extract
Here" option to extract it, or do it manually from within 7zip or winzip.
NOTE: If you do not have winzip or 7zip (or any archive managing program)
installed on your computer, go to: http://www.7-zip.org/download.html
and download the version appropriate for your machine. Follow the basic
installation procedure as with any other program.
5. It will work for a few minutes. It will automatically install and
organize the octave files within the Octave3.6.4_gcc4.6.2 folder. An icon
should be created in the "Octave" folder. There are two icons one has a
"_docs" on the end. Open octave using the link WITHOUT _docs on the end.
It may take a minute to load, let it work. You can then move the shortcuts
wherever
you like and/or "pin" the program to the taskbar for quick access.
-----------------------------------------------------------------------------
------------------------------------------------
AFTER OCTAVE IS INSTALLED AND OPERATIONAL, DOWNLOAD AND INSTALL NOTEPAD++ AS
YOUR TEXT EDITOR:
First, go to http://notepad-plus-plus.org/download/v6.3.3.html
and click on the "Notepad++ installer" link and download it. Then go
through basic install instructions like any other program. Leave all the
boxes as default. The important thing is make sure you know where it
installs to, either "Program Files" or "Program Files (x86)". DO NOT
CHANGE where it installs, just make sure you know which one it is. Once it
is installed, make sure you close both Notepad++ and Octave, then do the
following:
-----------------------------------------------------------------------------
------------------------------------------------
AFTER INSTALLATION OF OCTAVE AND NOTEPAD++ IS COMPLETE, FOLLOW THESE STEPS TO
LINK NOTEPAD++ TO OCTAVE.
THIS WILL ALLOW FOR USE OF THE "edit" COMMAND IN OCTAVE:
Follow these steps carefully and BE SURE NOT TO CHANGE ANYTHING ELSE INSIDE
THIS FILE.
Even a space in the wrong place can make things not work. Again, It is a good
idea to exit both Octave
and Notepad++ before attempting to make this change.
1. Go to where you installed octave and navigate to:
Octave3.6.4_gcc4.6.2\share\octave\site\m\startup\octaverc
2. Open up the "octaverc" file in WORDPAD. This may require you to right
click and
select "open with" then choose WORDPAD.
3. When it opens you should see the lines:
## Uncomment and change following line for your preferred editor
## EDITOR('C:\\Program Files (x86)\\Notepad++\\notepad++.exe');
CHANGE the 2nd line by deleting the space and the 2 # signs before EDITOR.
4. It should now look like this:
## Uncomment and change following line for your preferred editor
EDITOR('C:\\Program Files (x86)\\Notepad++\\notepad++.exe');
5. Change the path of the file to be either "Program Files" or "Program
Files (x86)" depending on where you installed Notepad++ to on your
computer. If you are unsure, go into your C:\ drive and check both folders
for Notepad++.
Also, note the locations of the space between Program and Files and
Files and (x86). This space is required. Type it exactly as you see it.
You should not need to change anything else in this line.
6. Once you have deleted the space and 2# signs, and changed the path to
be correct for where you stalled Notepad++, go ahead and save and exit the
file. IF YOU THINK YOU DID SOMETHING WRONG EXIT WITHOUT SAVING AND START
OVER.
7. Now reopen Octave and try the "edit myfile.txt" command and see
if it opens a file in Notepad++. Note that it may prompt you to create the
file if it does
not yet exist. If Notepad++ opens and creates the file, you are done. Note
that the "edit"
command is just a shortcut to open/edit (i.e. create a new, or resume work on
an already exisiting) a file
and that it is not required. You could simply open the file manually by
navigating to it in Windows or
open Notepad++ and open the file that way.
You are done! :)