projects
/
jump.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
dol: create target object folders when generating
[jump.git]
/
example7
/
filter_script.m
1
clear all;
2
close all;
3
clc;
4
5
N = 3;
6
NUMBER_OF_SAMPLES = 5;
7
FILTER_COEFFICIENTS = [0.1 -0.1 0.4 1.0 -0.7 0.2 -0.9 -0.4 -0.8];
8
x = [-9 4 -2 0 -3 0 8 3 6 0, ...
9
-7 -9 -5 2 1 2 8 -4 -6 -4];
10
11
%example 6
12
y = filter(1, [1 -0.5], x(1:10))
13
14
%example 7
15
y = filter(1, [1 -FILTER_COEFFICIENTS(1:N-1)], x (1:NUMBER_OF_SAMPLES))