Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marc Posthuma
Bachelor Stage
Commits
9630189d
Commit
9630189d
authored
May 20, 2021
by
mposthuma
Browse files
added sine wave function for vc experiment
added regression script (sort-of...)
parent
de2426a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
regression.m
0 → 100644
View file @
9630189d
%% regressie
%
bias
=
x
;
r
^
2
=
y
;
t
=
text
(
x
,
y
,[];
[]
=
'$r^2 = '
num2str
(
rsq
)
'$$b = '
numstr
(
bias
)
'$'
];
t
.
fontsize
=
20
;
\ No newline at end of file
sine_wave_function.m
0 → 100644
View file @
9630189d
%% Vestibular Signal
% sine wave function plot
cfn
=
pb_clean
;
cfn
=
pb_newfig
(
cfn
);
A
=
70
;
%amplitude
f
=
1
/(
2
*
pi
);
%frequency
t
=
0.1
:
0.1
:
200
;
%time vector
w
=
tukeywin
(
2000
,
0.25
);
w
=
w
'
;
y
=
A
*
sin
(
2
*
pi
*
f
*
t
)
.*
w
;
plot
(
t
,
y
);
title
(
'Sine wave function VC'
);
xlabel
(
'Time(s)'
);
ylabel
(
'Amplitude($^{\circ}$)'
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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