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

21
semestralka/1.m Normal file
View File

@@ -0,0 +1,21 @@
clc;
close all;
clear all;
% semestralka
rawText = fileread('data6.dat');
nums = regexp(rawText, '[-+]?\d+', 'match');
data = int16(str2double(nums));
X = DFT_priama(double(data))
n = length(X)
freq = (0:n-1)/n
figure;
plot(double(data));
figure;
plot(freq, X)
figure;
plot(freq, abs(X))
figure;
plot(freq, angle(X))