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