LABORATORY FOR PROGRAMMING
Learning outcomes of the course unit
Knowledge and understanding:
At the end of the course studentswill acquire, through laboratory practice, the theoretical and practical skills necessary for writing simple programs in MATLAB.
Applying knowledge and understanding::
Students must be able to analyze simple problems, identify a solution and write short programs to implement the solution on a computer.
Students will need theoretical and practical knowledge to identify their own solutions to simple problems and express them through the formalisms of computer science.
students must be able to present their work, documenting it clearly.
Course contents summary
The course is divided in two parts: a theoretical part (about 6 hours) and another consisting of of experimental activities (16 hours). \
The theoretical part covers the following topics:
The goal of the practical part is to teach, in laboratory classes, the basic elements of MATLAB programming, as well as the basics of MS Excel programming.
- Computer architecture.
- Data representation.
- Basic programming concepts .
- Introduction to MATLAB
- Data and variables
- Vectors and matrices
- System functions
- Control structures: if, for, while
- Defining and using functions
- Graphic functions
MATLAB for engineers (4th edition)
William J. Palm III
Introduction to MATLAB for Engineers
The slides used during the classes and labs will be made available on the web site of the course.
The theoretical part of the course will be illustrated through lectures using overhead projections. The experimental part will include practical work carried out by the students. These exercises are introduced by a short lecture in which students are introduced to the programming tools that will be used for the exercises. The exercises are carried out by groups of students (no more than two) or by individual students.
Assessment methods and criteria
The exam is composed of:
- a written test with 5 excercises (3 regarding MATLAB, 1 regarding the flow charts, and 1 on MS Excel
- a lab test in which the student will be asked to write a simple function in MATLAB and a short program that calls the function, and to report the results obtained by running them.
The written test is passed if no more than one error is made in any of the excercises.
The lab test is passed if both the code written and its output are correct.