iCub-main
Loading...
Searching...
No Matches
sine.m
Go to the documentation of this file.
2frequency = 1; %hertz
3amplitude = 10; %degrees
4offset = 0; %degrees
5time = [0: 0.020: 10];
6
7%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9
11hold on
12grid on
13plot (time, out)
14
15fileID = fopen('trajectory.txt','w');
16%A = [time; out];
17%fprintf(fileID,'%6.3f %6.3f\n',A);
18A = [out];
int n
grid on
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