Introduction to Programming

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. Algorithms
2. The work environment of Matlab; Command Window; Code Editor.
3. M-Files: Scripts and functions.
4. Variables.
5. Numbers.
6. Predefined functions usual.
7. Expressions.
8. Control instructions: Conditional statements – If and Switch Case; Loops – For and While;
9. Arrays: Vectors; Two dimensional arrays; manipulation of arrays; Operations with arrays.
10. Functions : Structured programming ; External and anonymous functions ; Structure of a function ; Local and global variables.
11. Importing and exporting data.

Curricular Unit Teachers

Internship(s)

NAO

Bibliography

RECOMMENDED BIBLIOGRAPHY:

MORAIS, V., VIEIRA, C. (2013) – MATLAB – Curso Completo, Ed. FCA (disponível na Biblioteca do ISEC: 1A-1-453)

CHAPMAN, S. J. (2008) – Programação em MATLAB para Engenheiros, 4e, Thomson Engineering (disponível na Biblioteca do ISEC: 1ª-1-453)

MARQUES, J. – Sebenta de Introdução à Programação. ISEC (disponível nas plataformas académicas Moodle e Inforestudante)

MARQUES, J., DUARTE, A. – Problemas de Programação. ISEC (disponível nas plataformas académicas Moodle e Inforestudante)

 

COMPLEMENTARY BIBLIOGRAPHY:

GILAT, A. (2006) – MATLAB com Aplicações em Engenharia, Ed. Artmed S. A.