ENG004 ALGORITHMS & INT. TO PROGRAMMING Week 2 “Exploring MATLAB” Ahmet Anıl Dindar
ENG The class facts address: Class web page:
ENG Last week The syllabus was distributed. The facts about the class was mentioned The class was introduced and the students were asked to send a registration mail to the class .
ENG This week What is Algorithm and Programming? Why do we need programs? A powerful tool- MATLAB What is MATLAB? Why MATLAB? HOw to use it? The first commands in MATLAB.
ENG Algorithm and Programming The best way to do some work is to know how to do it. ALGORITHM Some examples to Algorithm
ENG Programming How to make a machine to perform the algorithms? PROGRAMMING How to program?
ENG You need some tools to make the machine perform your algorithms Basic Pascal C,C++ Java Perl...
ENG MATLAB MATLAB (MATrix LABoratory) is a powerful program based on C++ and JAVA applications. It has wide range of command library. Almost every engineering student in USA uses MATLAB. Most of the Turkish Universities started teaching MATLAB in introductory classes.
ENG MATLAB and Columns-Beams? What is the relationship? MATLAB in Civil Engineering? Do we need it? Does any Civil Engineer use MATLAB in work? Have you ever seen any Civil Engineer using MATLAB?
ENG And now let’s see How MATLAB looks? Follow me now!
ENG Let’s do some Calculations The 4 basic calculation 1+2 5-1 15*2 8/4 (1+2)*5-1
ENG Gauss Number =? Let’s use MATLAB >> 100*(100 +1)/2 ans = 5050 >>
ENG Assignment #1 Please do the following calculations in MATLAB >> 10*(10+1)/2 >> (10+50)*(10+20)/10 >>10*(10+1)+(10+1/2)*(58+1) >>25/2+8-9 >>8+9*9-5 >> 8+9*(9-5) >> (8+9)*9-5 Are there any difference between these calculations?
ENG Send your diary files to class
ENG Next week... WeeksDateClassAssignment Introduction to the classRegistration Exploring MATLABAssignment Arrays and Matrix Operations N.A Arrays and Matrix Operations Assignment Arrays and Matrix OperationsAssignment Polynomials and curve-fitting Assignment Descriptive statistics Assignment Programming Elements of MATLAB N.A Programming Elements of MATLAB Assignment Programming Elements of MATLAB Assignment Plotting and Animations N.A Plotting and Animations Assignment Numerical Integration Assignment Symbolic Math Assignment Take-home final projectN.A.
ENG See you next week!
ENG