|
ME1004 | Computer Programming | 2+1+0 | ECTS:3 | Year / Semester | Spring Semester | Level of Course | First Cycle | Status | Compulsory | Department | DEPARTMENT of MECHANICAL ENGINEERING | Prerequisites and co-requisites | None | Mode of Delivery | | Contact Hours | 14 weeks - 2 hours of lectures and 1 hour of practicals per week | Lecturer | Doç. Dr. Nurhan GÜRSEL ÖZMEN | Co-Lecturer | Assoc.Prof.Dr. Nurhan GÜRSEL ÖZMEN, Assist. Prof. Dr. Caner SANCAK | Language of instruction | | Professional practise ( internship ) | None | | The aim of the course: | To build the programming logic, Introduce MATLAB environments and elements, to be able to write MATLAB codes for real engineering problems, to learn graphical interfaces
|
Learning Outcomes | CTPO | TOA | Upon successful completion of the course, the students will be able to : | | | LO - 1 : | understand the syntax and structure of MATLAB programs | 4,7 | 3 | LO - 2 : | edit, compile, execute and get hard copy of a simple program | 4,7 | 4 | LO - 3 : | develop algorithms to solve engineering problems | 4,7 | 3 | LO - 4 : | identify run-time error and test a program for debugging purposes | 4,7 | 1 | LO - 5 : | write a program using appropriate selection statements such as if-else and switch | 4,7 | 1 | LO - 6 : | write a program using appropriate looping statements such as while, for and do-while | 4,7 | 1 | LO - 7 : | write a program using functions with parameters passed by value and by reference | 4,7 | 1 | CTPO : Contribution to programme outcomes, TOA :Type of assessment (1: written exam, 2: Oral exam, 3: Homework assignment, 4: Laboratory exercise/exam, 5: Seminar / presentation, 6: Term paper), LO : Learning Outcome | |
Introduction to MATLAB, MATLAB interface as well as basic programming techniques, Understand the MATLAB Desktop, Command window and the Graph Window, Basic MATLAB data structures, Arrays, constructing and manipulating lists, vectors, and matrices, Creating Variables, scripts, and operations, Some Useful MATLAB Functions and run simple scripts (M-files), Program Design and Development, Relational Operators and Logical Variables, Conditional Statements (if, else, and elseif), Loops (for loops, while loops), Plotting (graphics tools to display data), File Input and Output in MATLAB. Using MATLAB for Engineering Problem Solving. |
|
Course Syllabus | Week | Subject | Related Notes / Files | Week 1 | The basic of programming and origin of MATLAB | | Week 2 | Expressions in Matlab : Numbers, Variables, operators, functions, Data types | | Week 3 | Operators (+ - / * % && || +++ and --)
Basic writing rules | | Week 4 | Constant operators and expressions
| | Week 5 | Programming steps, control statements
| | Week 6 | if-else-else if structure
| | Week 7 | Iteration Structure, while loop
| | Week 8 | Calculations element by element in matlab, using break and continue in the loop
| | Week 9 | Mid-term exam
| | Week 10 | for loop, and Selective Structure: switch-case
| | Week 11 | Standard (Predefined) Functions - User-Defined Functions
| | Week 12 | Functions (continue)
| | Week 13 | Plotting with matlab
| | Week 14 | Plot, title, xlabel, ylabel and hold Command, Multi Graphics, legend, figures and subplot Functions
| | Week 15 | Input/Output in MATLAB, solutions of equations.
| | Week 16 | End-of-term exam | | |
1 | Dal D., 2015, MATLAB ile Programlama, Ekin Yayınevi, İstanbul | | |
1 | Arifoğlu U., Kubat C., 2003, MATLAB ve Mühendislik Uygulamaları, alfa Yayıncılık, İstanbul | | |
Method of Assessment | Type of assessment | Week No | Date | Duration (hours) | Weight (%) | Mid-term exam | 9 | 17/04/2024 | | 25 | Homework/Assignment/Term-paper | 4,6,8,10 | 23/04/2024 | 7 | 25 | End-of-term exam | 16 | 05/06/2024 | | 50 | |
Student Work Load and its Distribution | Type of work | Duration (hours pw) | No of weeks / Number of activity | Hours in total per term | Yüz yüze eğitim | 3 | 14 | 42 | Sınıf dışı çalışma | 1 | 14 | 14 | Laboratuar çalışması | 1 | 14 | 14 | Arasınav için hazırlık | 2 | 8 | 16 | Arasınav | 1.5 | 1 | 1.5 | Ödev | 4 | 4 | 16 | Kısa sınav | 1 | 1 | 1 | Dönem sonu sınavı için hazırlık | 2 | 6 | 12 | Dönem sonu sınavı | 1.5 | 1 | 1.5 | Diğer 1 | 1 | 5 | 5 | Total work load | | | 123 |
|