Course Outline List the topics covered within each week. 

Week 
Topic(s) 
1 
Introduction to MATLAB Programming
LECTURE WORK : Opening MATLAB and introducing the editor, command prompt, workspace, variables, arrays, operations on arrrays and plotting)
HOMEWORK : a) Evaluate and store the sine and cosine values of the values from 0 to 360 10 by 10 and store them to the separated arrays called sines and cosines before plotting the sinusoidal graphs of these arrays, b) Evaluate the Tangent of these values by simply using these arrays 
2 
Variables and Control Structures (if, elseif, while, for…) with examples Part 1
LECTURE WORK : Defining Variables, storing values to the variables, operations on the variables, Write a small program that simulates 1000000 throws of a dice and show that each face comes up at approximately same rate
HOMEWORK : Solution of Grade book example using if, elseif structures (retrieve a number from the user while he doesn’t enter (1) and display the corresponding letter grade on the screen

3 
Variables and Control Structures (if, elseif, while, for…) with examples Part 2
Writing a program that continuously takes values from the user and converts them to 0 if the entered number is even and converts them to 1 if the entered number is odd. The program will also display whether the sum of all entered numbers are odd or even
HOMEWORK : Writing a MATLAB program that determines the solution of 5.th degree mathematical expression for any given a,b,c d,e of; ax^4+bx^3+cx^2+dx+e

4 
Functions and Arrays
LECTURE WORK : Define 3 arrays called a,b and c, then write the functions topla, cikart carp, bol and us. Using these functions calculate ((3x4)^52)/5. Finally plot the results
HOMEWORK : a)Study recursive functions and write the function “faktoriyel” recursively without using the built in factorial function b) write a program that calculates the transpose of an array

5 
2 dimensional arrays in MATLAB Usage of 2 dimensional arrays and ploting them in 3D in MATLAB
LECTURE WORK : Again define 3 arrays called a,b and c (each 2D this time) , then write the functions topla, cikart carp, bol and us. Using these functions calculate ((3x4)^52)/5. Finally plot the results
HOMEWORK : Plot the 3d graph of randomly filles 10 by 10 2 dimensional array after storing them in a 2D array 
6 
Accessing to array indexes, sorting and swapping
LECTURE WORK 1) Assume you have a class of 40 students, assign them random grades between 0 and 100 Then plot the curve of the class 2) Writing the complete program of TOMBALA game. HOMEWORK : Create a an M x N array, fill it with random numbrs between a and b (taken from the user) Sort both rows and arrays 
7 
Usage of functions calling other functions and passing arrays between functions. Debugging and troubleshooting in Matlab Programs
LECTURE WORK : 1) A cont. time x(t) signal is given. Plot x(t) versus t = 0 : 0.01 : 5, x(t) = 10e −t − 5e −0.5t 2) Repeat part (1) for x(t) = 10e −t + 5e −0.5t HOMEWORK : An exponentially damped sinusoidal signal is defined by x(t) = 20sin(2π × 1000t − π/3)(e −at) where the exponential parameter a is variable, taking on the set of values a=250, 500, 750, 1000. For each a value draw x(t) signal for −2 ≤ t ≤ 2 miliseconds. Observe the effects of a on the signal. Using subplot command plot x(t) signals for all a values on the same graph.

8 
LAB EXAM (Preperation for Exam (Resitation)) 
9 
Plotting, and some plotting properties of Matlab (Plot, subplot, stem, title, axis, legend, set, fill, grid, hold,…)
LECTURE WORK : Midterm Solution (see in Lecture Notes link) HOMEWORK : Take a value called "n" from the user, then Create two arrays with size floor(n/2) called arrayodd and arrayeven and fill them with random odd / even numbers between 1100. Then store them into another array called arrayone such that; 1.st element of arrayone will be the first of arrayodd, 2.nd element of arrayone will be the first of arrayeven + first of arrayone, 3.rd element will be the second of arrayodd + first 2 elemets of arrayone and goes like this 
10 
Some built in functions, (int, trapz, diff, rand, mod, zeros, find, exp …), their usage methods and examples LECTURE WORK : Write a program in which there will be n elements (the n value will be taken from the user) which will be shown by red diomonds and they will move in an area of 100x100 with random speeds and to random directions. they will also reflect when they hit to the borders or to eachother HOMEWORK : Try to compleate the object reflection program 
11 
Developing Matlab programs including “Mobile objects” for simulation purpose
LECTURE WORK : Write a program in which there will be n elements (the n value will be taken from the user) which will be shown by red diomonds and they will move in an area of 100x100 with random speeds and to random directions. they will also reflect when they hit to the borders or to eachother HOMEWORK : try to complete the program above 
12 
Managing the distributed data by centralized way using multidimensional arrays in the simulations Part 1
LECTURE WORK : Learning how to manage centralised data by differend nodes runing in the same area (a simulation perspective) HOMEWORK : Completing the the object reflection program 
13 
Managing the distributed data by centralized way using multidimensional arrays in the simulations Part 2
LECTURE WORK : Tombala example as Recitation


