% ノイズを含む信号を生成

rng(0, 'twister');
%rng('shuffle', 'twister');

T = 0.001;
time = (0:T:1)';

A = 2.0;
f = 5;
phase = pi/6;
alpha = 1.2;

%%%%%

value =  sinusoidal_with_noise ( time, A, f, phase, alpha, 0 );
set(0,'defaultAxesFontSize',16);
set(0,'defaultTextFontSize',16);
plot(time, value);
xlabel('time');
ylabel('position');
grid on;
saveas(gcf, 'sinusoidal_with_noise-0.eps', 'eps');
fprintf("一時停止：何かのキーを押してください\n");
pause;

%%%%%

value =  sinusoidal_with_noise ( time, A, f, phase, alpha, 2 );
set(0,'defaultAxesFontSize',16);
set(0,'defaultTextFontSize',16);
plot(time, value);
xlabel('time');
ylabel('position');
grid on;
saveas(gcf, 'sinusoidal_with_noise-2.eps', 'eps');
fprintf("一時停止：何かのキーを押してください\n");
pause;
