semestralka

This commit is contained in:
Filipriec
2025-11-06 14:59:22 +01:00
parent e46f0d4336
commit ac80e6fd55
7 changed files with 144 additions and 1 deletions

33
hod3/2.m Normal file
View File

@@ -0,0 +1,33 @@
clc;
close all;
max_val = 99
n = 0:max_val
f = 0.05
% x = (x^5-x^3+x^2-1)*(x^6-2);
%
% Konvolucia
a = sin(2*pi*f*n)
b = sin(2*pi*f*n+0.5)
c = conv(a,b)
figure;
stem(a)
hold on;
stem(b)
figure;
stem(c)
figure;
% Korelacia
R = xcorr(a,b)
stem(R)
figure;
% AutoKorelacia
T = autocorr(a)
stem(T)