MATLAB

Course objectives

General goals: to acquire computer programming skills in MATLAB, which is one of the most used languages in numerical calculation, and to apply the acquired computer skills to the resolution of some mathematical problems and for the graphics of data and functions. Specific goals: Knowledge and comprehension: students who have passed the exam will be able to implement simple algorithms and create graphs using MATLAB software. Apply knowledge and comprehension: students will be able to develop codes in the MATLAB environment to solve numerical problems, using the main functions of MATLAB Critical skills and judgment: students will have the basis for creating elementary mathematical algorithms and structuring through vectorization, which proves to be optimal in the MATLAB environment from the point of view of computational efficiency. Learning skills: the knowledge acquired will allow students to study of problems that require scientific programming skills and will certainly facilitate them in learning other software of interest for scientific calculation and for future work.

Channel 1
GABRIELLA ANNA PUPPO Lecturers' profile

Program - Frequency - Exams

Course program
Matlab Desktop components and their organization, workspace, command window, command history, online documentation, window layout, preferences, script editor, array editor. Workspace manipulation, loading and saving data to .mat files, loading and saving scripts to .m files. Strings, scalars, constants, math functions, vectors, matrices. Variable assignment, arithmetic operations, concatenation, transposition, length and size, element-wise operations, access/modification/deletion of elements and blocks of elements, predefined useful matrices, creation, manipulation and more advanced operations on vectors and matrices. Relational and logical operators in scalar, vector and matrix form. Flow control and loop control. Anonymous functions, primary functions, global variables, secondary workspaces. Graphics components, object hierarchy, object handles, reading/writing/finding object properties. Main properties of figure, axes, line, surface, image objects. Visualization of points and graphs in the plane and in the space, functions of one and two variables, parametric curves and surfaces, vector fields, contour lines, modification of color properties, style, markers via handles. Color maps, lights, lighting and texture mapping. Time measurement, animations in real time. Interactive uicontrol components: buttons, sliders, text fields, popup menus. Behavior of the uicontrols through customized functions and creation of graphical interfaces.
Prerequisites
Basic knowledge of the typical constructs of programming languages, relational and logical operators, flow control, loop control, elementary operations on vectors and matrices. Topics covered in the courses of Programming and Calculus Laboratory and Linear Algebra.
Books
Matlab online documentation, official guide in pdf format, lecture notes and scripts. Further readings: - Cleve Moler, Numerical Computing with Matlab, SIAM, 2004 - Peter I. Kattan, Matlab for beginners. A gentle approach, Createspace, 2008
Frequency
Attendance is not mandatory but strongly recommended.
Exam mode
The exam takes place in the laboratory (max 3 hours) and consists of a practical test, i.e. the creation of a MATLAB script on a theme that will be assigned at the beginning of the test itself, similar to those presented during the course.
Bibliography
Matlab online documentation, official guide in pdf format, lecture notes and scripts. Further readings: - Cleve Moler, Numerical Computing with Matlab, SIAM, 2004 - Peter I. Kattan, Matlab for beginners. A gentle approach, Createspace, 2008
Lesson mode
The course takes place entirely in the laboratory and provides for continuous interaction between the teacher and the students. Each student occupies a workstation equipped with a computer and, as new concepts/tools are introduced, there is a direct implementation of code aimed at understanding and faster use of the same. Office hours: by appointment (email).
Channel 2
GABRIELLA ANNA PUPPO Lecturers' profile

Program - Frequency - Exams

Course program
Matlab Desktop components and their organization, workspace, command window, command history, online documentation, window layout, preferences, script editor, array editor. Workspace manipulation, loading and saving data to .mat files, loading and saving scripts to .m files. Strings, scalars, constants, math functions, vectors, matrices. Variable assignment, arithmetic operations, concatenation, transposition, length and size, element-wise operations, access/modification/deletion of elements and blocks of elements, predefined useful matrices, creation, manipulation and more advanced operations on vectors and matrices. Relational and logical operators in scalar, vector and matrix form. Flow control and loop control. Anonymous functions, primary functions, global variables, secondary workspaces. Graphics components, object hierarchy, object handles, reading/writing/finding object properties. Main properties of figure, axes, line, surface, image objects. Visualization of points and graphs in the plane and in the space, functions of one and two variables, parametric curves and surfaces, vector fields, contour lines, modification of color properties, style, markers via handles. Color maps, lights, lighting and texture mapping. Time measurement, animations in real time. Interactive uicontrol components: buttons, sliders, text fields, popup menus. Behavior of the uicontrols through customized functions and creation of graphical interfaces.
Prerequisites
Basic knowledge of the typical constructs of programming languages, relational and logical operators, flow control, loop control, elementary operations on vectors and matrices. Topics covered in the courses of Programming and Calculus Laboratory and Linear Algebra.
Books
Matlab online documentation, official guide in pdf format, lecture notes and scripts. Further readings: - Cleve Moler, Numerical Computing with Matlab, SIAM, 2004 - Peter I. Kattan, Matlab for beginners. A gentle approach, Createspace, 2008
Frequency
Attendance is not mandatory but strongly recommended.
Exam mode
The exam takes place in the laboratory (max 3 hours) and consists of a practical test, i.e. the creation of a MATLAB script on a theme that will be assigned at the beginning of the test itself, similar to those presented during the course.
Bibliography
Matlab online documentation, official guide in pdf format, lecture notes and scripts. Further readings: - Cleve Moler, Numerical Computing with Matlab, SIAM, 2004 - Peter I. Kattan, Matlab for beginners. A gentle approach, Createspace, 2008
Lesson mode
The course takes place entirely in the laboratory and provides for continuous interaction between the teacher and the students. Each student occupies a workstation equipped with a computer and, as new concepts/tools are introduced, there is a direct implementation of code aimed at understanding and faster use of the same. Office hours: by appointment (email).
  • Lesson codeAAF1299
  • Academic year2025/2026
  • CourseMathematics
  • CurriculumMatematica per le applicazioni
  • Year3rd year
  • Semester1st semester
  • CFU3