Sei sulla pagina 1di 1

Hacettepe University - Mechanical Engineering Department MMÜ602 / MMÜ701 - Fall 2019 - Homework Preparation Guide

You are required to follow the guidelines given below. You will lose points if you fail to comply with them.

0) Homeworks and relevant information will be posted on

1) Write the homework number, submission date, your name and student number on top of the first page of your homework report.

2) Print-out your homework reports and submit them in the class; do not e-mail them. However, you must e-mail your computer programs to the course assistant. Your files must be clean of any viruses.

3) The first section of the report must be entitled “ I. INTRODUCTION ”. In this section, state the problem shortly and write down what is required in the question. Explain shortly the methods that you apply and show clearly your manual work such as arranging and deriving equations, ordering the points etc.

4) The second section of the report must be entitled “ II. THE PROGRAM ” in which you present your Matlab programs. In Matlab, do not forget to type clc, clear all, close all hidden at the top of your main program when you want to remove everything left in the memory, the workspace and the command window. Insert comments and explanations into the program to explain what is happening at each stage. In Matlab, you can insert comments and explanations using the percent sign %. You must also explain the variables used in the program. Make sure that you use different names for different variables. You should also not overwrite any Matlab built-in function when you define new variables in your program. For example, “sum” is a built-in function of Matlab and it is probable that you might have also defined a variable called “sum”. (Note: In Matlab, you may use the commands “which” and “exist” to check the existence of previously-defined variables and functions). Note: Matlab has pre-programmed (i.e. built-in) functions which are, in general, lengthy algorithms to perform mathematical operations (such as the “polyfit” function of Matlab for curve fitting applications). In the homeworks, unless you are told to use Matlab’s built-in functions, you must write your own independent program.

5) The third section of the report must be entitled “ III. RESULTS ” in which you are expected to print the output of the program in a legible (easy-to-read) format. Tabulating your results is one of the ways to present your output in an orderly manner. Display your results in double-precision unless stated differently. You must mark, highlight or box your answers so that they are clearly seen in the report. If you plot figures, put a title on the figure, label the axes and insert units where necessary. If there are more than one curve to be plotted in the same figure, define each of them clearly using labels and different line types/colours.

6) The fourth section of the report must be entitled “ IV. DISCUSSION ”. In this section, you must discuss your results. Explain whether the solution converges or diverges; indicate the amount and sources of errors involved; suggest ways of improving the accuracy of your results.

7) When you finish your work, e-mail your Matlab files (m-files) to the course assistant. The subject of your e-mail must include the course code (MMU601), homework number, your names and surnames. You should solve each question in a separate m-file. The names of your m-files must include the course code, homework number, question number, your names and surnames.

8) When naming your Matlab file (m-file), do not use a number as the first character and do not use the characters which are peculiar to our alphabet (i.e. ğ, ü, ş, ı, ö, ç). Matlab does not like the dash sign (-) for the names of the files but using underscore _ is acceptable.

9) Exchanging ideas with your friends is acceptable but in the end you must present an independent work i.e. the introduction, names of the variables, programming style, presentation of the results, comments and discussions must be different.