Skip to content
Snippets Groups Projects
Commit c5c0a4f0 authored by joemus's avatar joemus
Browse files

3. tehty, 2. kesken

parent 6b1a5e22
No related branches found
No related tags found
No related merge requests found
bk = [0,0,2,0,-1,0,2];
x= @(n) -7*(n-3);
y = conv(bk, x);
figure;
stem(x);
\ No newline at end of file
t = 0:0.0625:1;
y = 0.75*sin(2*pi*t + pi/2) + 0.33*cos(4*pi*t);
fs = 1 / (t(2) - t(1));
n = length(t);
fs_over = 4 * fs;
t_over = linspace(0,1,n * 4);
y_over = resample(y, fs_over, fs);
figure;
stairs(t,y);
hold on;
stem(t_over, y_over);
hold off;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment