This course is designed to expose the students on the development of programming skill using a computer language, which is suitable for the current computer operating system. It will emphasize on the general concept of computer programming that includes steps of problem solving using computer, algorithm and program logic tools, interface design, modularization, arrays, files and graphics. Examples, assignments and group projects related to various civil engineering fields are given to the students. At the end of the course, the student should be able to plan, analyst, and write computer programs for basic civil engineering applications.
Week
Topic
Download
1
INTRODUCTION TO COMPUTER PROGRAMMING
Introduction to Computers & Programming Process, Program-Development Life-Cycle (PDLC) Logic Design Tools-Flowchart, Pseudocode
VARIABLES AND OPERATORS
Introduction to Variables, Assignment Statements, Data Types
Built-in Functions, Anonymous Functions
HO – MATLAB as a Calculator – Dealing with Simple Problems
4
Vectors and Matrices – Dimension, Index/Subscript
String Manipulation – Operations on Strings, Converting to Numbers
HO – MATLAB as a Calculator – Dealing with Matrices, Strings
5
INTRODUCTION TO MATLAB PROGRAMMING
Algorithms, MATLAB Scripts – Input and Output, Input/Output using MAT-Files
HO – Creating Simple MATLAB Programs using Script
The plot Function
6
SELECTION STATEMENTS Relational Expressions – Logical true and falseThe if Statement – Nested if, The switch Statement, Data validation
HO – Applying if Statements
7
REPETITIVE STRUCTURES Counted Loop – for Loop, Nested for Loop
Conditional Loop – while Loop, Vectorizing
HO – Applying for Loop & while Loop
8
USER DEFINED FUNCTIONS Introduction to User-Defined Functions Modularisation, Subfunction
HO – Applying UDF, Debugging – Tracing Errors
9
Scope of Variables, Workspace
Nested Function
HO – Dealing with Modular Programs & Variables Scope
10
DATA STRUCTURES Introduction to Arrays & Structures – Passing to function
Vectors of Structures – Nested Structures
HO – Applying Data Structures
11
DATA & FILE MANAGEMENT Introduction to Data & Record FilesAccess Methods & Common File Operations
HO – Writing & reading data files
GRAPHICAL USER INTERFACES Introduction to GUI – How does it work?
Event-Driven Programming using GUI
HO – Dealing with simple GUI
14
callback function for Push Button
Sharing Variables using guidata
HO – Creating GUI – for Previously Developed Programs
Universiti Teknologi Malaysia (UTM)
“The best way to have a good idea is to have a lot of ideas”
MOHD NUR ASMAWISHAM ALEL Senior Lecturer (DS52)
Faculty of Civil Engineering
Universiti Teknologi Malaysia
81310 UTM Johor Bahru
Johor, MALAYSIA
Tel: +607-5531533
Fax: +607-5566157
Mobile: +6010-9000250
E-mail: info@asmawisham.com
Website: www.asmawisham.com