230-0231/01 – Fundamentals of programming in Matlab (ZPM)
Gurantor department | Department of Mathematics | Credits | 2 |
Subject guarantor | RNDr. Radomír Paláček, Ph.D. | Subject version guarantor | RNDr. Radomír Paláček, Ph.D. |
Study level | undergraduate or graduate | Requirement | Optional |
Year | | Semester | winter + summer |
| | Study language | Czech |
Year of introduction | 2019/2020 | Year of cancellation | |
Intended for the faculties | FAST | Intended for study types | Follow-up Master, Bachelor |
Subject aims expressed by acquired skills and competences
The aim of the course is to teach students how to think about programming. On simple examples, learn how to formulate a problem, analyze it, create an algorithm, build a program, and dictate it.
Teaching methods
Individual consultations
Tutorials
Summary
The course is designed for anyone who has no or has minimal programming experience. Students will learn the basics of algorithmization and programming, gain experience in creating flowcharts and their implementation. They will familiarize themselves with the basic building elements of programs such as cycles, conditional commands, variables, functions, etc. They will learn to program simple tasks using the Matlab program.
Compulsory literature:
K.Zaplatílek, B.Doňar: Matlab pro začátečníky, Technická literatura BEN, Praha 2003.
Recommended literature:
https://www.math.muni.cz/~kolacek/vyuka/vypsyst/navod.pdf
https://www.tutorialspoint.com/matlab/index.htm
Additional study materials
Way of continuous check of knowledge in the course of semester
E-learning
Other requirements
Individually developed program to course credits.
Prerequisities
Subject has no prerequisities.
Co-requisities
Subject has no co-requisities.
Subject syllabus:
1. INTRODUCTION - basic terms: program, algorithm, compilation, debugging, variable, identifier, data type, declaration, syntax, machine code, expressions, constants, fields, inputs, outputs, commands, cycles, conditions, functions.
2. Algorithm and its properties, algorithm notation, flowcharts, errors in algorithms, examples of algorithms, sequences, branches, cycles. Creating simple algorithms.
3. Basics of working with Matlab: User interface, help, variables, variable names, commands for working with variables, working with numbers, real numbers, rounding.
- demonstration of simple matching algorithms (using variables, numbers)
4. Basics of working with Matlab: Vectors, generating arithmetic sequences, working with data, logical variable, true, false, relational operators, logical operators, function for determining the validity of conditions
- demonstration of simple matching algorithms (using vectors, logic operations, ...)
5. Basics of working with Matlab: Matrices and vectors - input of matrices and vectors, functions for creating matrices, working with parts of matrices and vectors, operations with matrices and vectors, number of elements, dimension of matrix, manipulation with matrices
- demonstration of simple matching algorithms (using matrices, vectors, ...)
6. Programming in Matlab: scripts, functional M-files, inputs and outputs, programming structures, conditional statements, cycles, switch, break and continue in cycles
7. Programming in Matlab: Functions and their calls - elementary mathematical functions, definitions of functions, constants and special variables. Program Debugging.
8. Realization of various types of algorithms in Matlab (sequence, branching, cycles, switch)
9. Sorting algorithms and their realization in Matlab
10. Graphs in Matlab: Plotting a graph, plotting multiple graphs at once, setting a graph
11. Processing type tasks. Work on individual programs.
12. Processing type tasks. Work on individual programs.
13. Processing of type tasks. Work on individual programs.
14. Credit programs, course credits.
Conditions for subject completion
Occurrence in study plans
Occurrence in special blocks
Assessment of instruction