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 
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);
int n
grid on
Definition: show_eyes_axes.m:5
fclose(fileID)
out
Definition: sine.m:8
hertz amplitude
Definition: sine.m:3
A
Definition: sine.m:16
sampling_period
Definition: sine.m:1
fprintf(fileID,'%6.3f %6.3f\n', A)
degrees offset
Definition: sine.m:4
ms frequency
Definition: sine.m:2
out fileID
Definition: sine.m:15
figure(1) hold on grid on plot(time
degrees time
Definition: sine.m:5