Base Knowledge
None.
Teaching Methodologies
In the lectures a theoretical exposition of each subject is made which is complemented by the presentation of application exercises. In the laboratorial component practical problems are solved on the computer.
Learning Results
Objectives: To understand the notion of algorithm. Create and code algorithms in a high-level language. Understand and know how to apply the concepts of modularity and structured programming. Master the syntax of the language taught and know how to implement, analyze and debug programs in that language.
Generic skills: Ability to make decisions related to the theoretical and practical knowledge acquired; Promote the exchange of ideas and discussion of problems and solutions; Develop self-learning habits. Specific skills: Ability to use information technology as a tool for analyzing and solving mechanical engineering problems.
Program
1. The Matlab interface. Command window. Code editor. Workspace. Folder browser. Graphic window. M files. Help.
2. Variables. Number and formats. Strings. Variable identifiers. Predefined variables. Integers, real and complex numbers. Fixed-point and floating-point representations. Scalars and indexed variables. Strings.
3. Data input and output. input, disp and fprintf functions.
4. Expressions. Operands and operators. Arithmetic, logical and relational operators. Precedence rules.
5. Usual predefined functions.
6. Assignment and control instructions. Assignment statement. if and switch-case selection structures. For and while loops. Continue and break commands.
7. Arrays. Vectors and matrices. Creation, calling and operations with vectors and matrices.
8. Creating functions. External functions and anonymous functions. Input and output parameters. Function call.
9. Import and export of data from/to external files.
10. 2D graphics. Types of points and lines. Colour formatting. Commands for axes, grid and titles. Multiple curves on a graph. Subtitles. Multiple graphs in one graphical window. Multiple graphical windows.
Curricular Unit Teachers
Anabela Duarte CarvalhoGrading Methods
Students can opt for a distributed assessment methodology, consisting of 2 tests, if the minimum class attendance criterion of 75% in practical classes is met until each test date. Students from previous academic years are exempt from the minimum attendance criterion. The student's approval in the distributed assessment exempts the student from the final exam.
Test1 - 10/20 points - (from 8th week)
Test2 - 10/20 points (last week)
The average of the tests must be equal to or greater than 9.5/20 points and a minimum grade of 35% is required in each test. If any of these requirements are not met, or the student is absent or gives up in one of the tests, he will be assessed by a final exam at the official dates of the exams calendar.
The use of equipment is not allowed in tests and exams. The query elements that can be used will be indicated by the teacher.
Internship(s)
NAO
Bibliography
RECOMMENDED BIBLIOGRAPHY:
MORAIS, V., VIEIRA, C. (2013) – MATLAB – Curso Completo, Ed. FCA (available at ISEC library: 1A-1-453)
CHAPMAN, S. J. (2008) – Programação em MATLAB para Engenheiros, 4e, Thomson Engineering (available at ISEC library: 1ª-1-453)
MARQUES, J. – Sebenta de Introdução à Programação_PT. ISEC (available at academic platform Inforestudante)
CARVALHO, A. – Diapositivos de apoio às aulas_PT. ISEC (available at academic platform Inforestudante)
MARQUES, J., CARVALHO, A. – Practical classes exercises_EN. ISEC (available at academic platform Inforestudante)
MATLAB – Matlab Help Center (https://www.mathworks.com/help/matlab)
COMPLEMENTARY BIBLIOGRAPHY:
GILAT, A. (2006) – MATLAB com Aplicações em Engenharia, Ed. Artmed S. A.