iCub-main
sine.m
Go to the documentation of this file.
1 sampling_period = 20; %ms
2 frequency = 1; %hertz
3 amplitude = 10; %degrees
4 offset = 0; %degrees
5 time = [0: 0.020: 10];
6 
7 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9 
10 figure(1)
11 hold on
12 grid on
13 plot (time, out)
14 
15 fileID = fopen('trajectory.txt','w');
16 %A = [time; out];
17 %fprintf(fileID,'%6.3f %6.3f\n',A);
18 A = [out];
19 fprintf(fileID,'%6.3f\n',A);
20 fclose(fileID);
out
out
Definition: sine.m:8
offset
degrees offset
Definition: sine.m:4
amplitude
hertz amplitude
Definition: sine.m:3
fprintf
fprintf(fileID,'%6.3f %6.3f\n', A)
n
int n
Definition: debugFunctions.cpp:58
frequency
ms frequency
Definition: sine.m:2
figure
figure(1) hold on grid on plot(time
f
f
Definition: compute_ekf_sym.m:22
A
A
Definition: sine.m:16
sampling_period
sampling_period
Definition: sine.m:1
on
grid on
Definition: show_eyes_axes.m:5
fileID
out fileID
Definition: sine.m:15
fclose
fclose(fileID)
time
degrees time
Definition: sine.m:5