|
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 | Dr. Öğr. Üyesi Mustafa Yavuz COŞKUN | Co-Lecturer | None | Language of instruction | | Professional practise ( internship ) | None | | The aim of the course: | This course provides an introduction to the Programming Language . Insights and basic knowledge of solving engineering problems by using MATLAB. Presentation of MATLAB features and most important programming statements. Background information for object-oriented language. |
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 | 1,2,3,4,5 | 1,3, | LO - 2 : | edit, compile, execute and get hard copy of a simple program | 1,2,3,8,9 | 1,3, | LO - 3 : | develop algorithms to solve engineering problems | 1,2,3,8,9 | 1,3, | LO - 4 : | identify run-time error and test a program for debugging purposes | 1,2,3,8,9 | 1,3, | LO - 5 : | write a program using appropriate selection statements such as if-else and switch | 1,2,3,8,9 | 1,3, | LO - 6 : | write a program using appropriate looping statements such as while and for | 1,2,3,8,9 | 1,3, | LO - 7 : | write a program using functions with parameters passed by value and by reference | 1,2,3,8,9 | 1,3, | 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 | |
The origin of programming and the basics of MATLAB commands. Variables, Constant Operators, and Expressions. Program Control Statements and Loops. Functions. Arrays. Pointers. Data Structures, Input/Output with Files. Data storage and plotting tools |
|
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 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 | Dr. Deniz DAL, "MATLAB ile Programlama", Ekin Yayıncılık, 2016 | | |
1 | İbrahim YÜKSEL, "MATLAB ile Mühendislik Sistemlerinin Analizi ve Çözümü", DORA BASIN Yayın Dağıtım Ltd. Şti., 2014 | | 2 | Prof. Dr. Uğur ARİFOĞLU, "MATLAB 9.1 Simulink ve Mühendislik Uygulamaları", Alfa Basım Yayın Dağıtım, 2016 | | 3 | MATLAB Academy, MATLAB Onramp Course, | | 4 | Carnegie Mellon University (USA), ctms.engin.umich.edu/CTMS/index.php?aux=Basics_Matlab | | |
Method of Assessment | Type of assessment | Week No | Date | Duration (hours) | Weight (%) | Mid-term exam | 9 | 15/04/2025 | 2 | 25 | Homework/Assignment/Term-paper | 5 10 | 09/05/2025 | 5 | 25 | End-of-term exam | 16 | 16/06/2025 | 2 | 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 | Arasınav için hazırlık | 2 | 6 | 12 | Arasınav | 2 | 1 | 2 | Ödev | 2 | 4 | 8 | Dönem sonu sınavı için hazırlık | 2 | 6 | 12 | Dönem sonu sınavı | 2 | 1 | 2 | Total work load | | | 92 |
|