Files
css/semestralka/1.m
2025-11-06 14:59:22 +01:00

22 lines
320 B
Matlab

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))