Skip to content

Commit 2fbc418

Browse files
committed
add: Generated and checked READMEs
1 parent deebc1d commit 2fbc418

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Programming in MATLAB Assignments
2+
3+
This repository contains solutions to assignments for the course "Programování v MATLABu" at ČVUT.
4+
5+
## Assignments
6+
7+
### Assignment 1: Singular Value Decomposition
8+
Implementation of Singular Value Decomposition algorithms using the Jacobi diagonalization method.
9+
10+
### Assignment 2: Flag Animations
11+
Creation of stationary and animated flags with sinusoidal displacements.
12+
13+
![Czech Flag with Displacement](assignment/02/czech_flag_sin_displacement_shading_interp.png)
14+
![German Flag with Displacement](assignment/02/german_flag_sin_displacement_shading_interp.png)
15+
16+
### Assignment 3: Library Management System
17+
Object-oriented implementation of a library system with books and entries.

assignment/01/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Singular Value Decomposition
2+
3+
This repository contains MATLAB implementations of Singular Value Decomposition (SVD) algorithms using the Jacobi diagonalization method, as part of a university assignment in programming with MATLAB.
4+
5+
## Contents
6+
7+
- `Singular Value Decomposition/`: MATLAB scripts implementing SVD and related functions
8+
- `SVD_sq.m`: SVD for square matrices
9+
- `diag_decomp.m`: Jacobi diagonalization for symmetric matrices
10+
- `max_non_diag_elem.m`: Finds the maximum non-diagonal element
11+
- `rotation_matrix.m`: Generates rotation matrices for Jacobi method
12+
- `protokol/`: LaTeX source for the assignment report
13+
- `protokol.pdf`: Compiled report (in Czech)
14+
15+
## Author
16+
17+
Martin Kunz

assignment/02/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Flag Simulation in MATLAB
2+
3+
This repository contains MATLAB scripts for simulating stationary and waving flags using triangular meshes and sinusoidal displacement.
4+
5+
## Scripts
6+
7+
- `czech_flag_stationary.m`: Renders a stationary Czech flag.
8+
- `czech_flag_stationary_sin_displacement.m`: Renders a waving Czech flag with sinusoidal displacement.
9+
- `german_flag_stationary_sin_displacement.m`: Renders a waving German flag with sinusoidal displacement.
10+
- `simple_flag_stationary_no_displacement.m`: Renders a stationary simple flag.
11+
- `simple_flag_stationary_sin_displacement.m`: Renders a waving simple flag with sinusoidal displacement.
12+
13+
## Helper Functions
14+
15+
- `triag_fill.m`: Fills a rectangle with triangular meshes.
16+
- `set_col.m`: Assigns colors to polygons based on regions.
17+
18+
## Example Outputs
19+
20+
- `czech_flag_sin_displacement.png`: Waving Czech flag.
21+
- `czech_flag_sin_displacement_shading_interp.png`: Waving Czech flag with shading interpolation.
22+
- `german_flag_sin_displacement_shading_interp.png`: Waving German flag with shading interpolation.

assignment/03/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Library Management System
2+
3+
This MATLAB project implements a simple library management system using object-oriented programming. It consists of three main classes:
4+
5+
- `Book`: Represents a book with properties such as title, author, number of pages, ISBN, rating, and more. Includes functionality to add ratings.
6+
- `BookEntry`: Manages book entries in the library, tracking the number of copies and checked-out books. Supports checkout and return operations.
7+
- `Library`: Represents a library containing multiple book entries. Allows adding/removing books and handling checkout/return processes.
8+
9+
The `Library_life.m` script demonstrates the usage of these classes by creating sample books, managing ratings, and simulating library operations.

0 commit comments

Comments
 (0)