Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fredrik Bagge Carlson
SystemIdentification
Commits
c5afc09b
Commit
c5afc09b
authored
Sep 06, 2015
by
Fredrik Bagge Carlson
Browse files
dev tf
parent
e5371d18
Changes
1
Show whitespace changes
Inline
Side-by-side
src/transfer_functions.jl
0 → 100644
View file @
c5afc09b
using
DSP
function
tfest
(
y
,
u
)
Cyu
=
xcorr
(
y
,
u
)
Cuu
=
xcorr
(
u
,
u
)
Syu
=
welch_pgram
(
Cyu
)
Suu
=
welch_pgram
(
Cuu
)
return
H
=
TF
(
Syu
.
power
./
Suu
.
power
,
Syu
.
freq
)
end
N
=
200000
;
u
=
randn
(
N
);
y
=
filt
(
ones
(
30
),
30
,
u
);
H
=
tfest
(
y
,
u
);
loglog
(
H
.
f
,
abs
(
H
.
P
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment