iCub-main
Loading...
Searching...
No Matches
Functions | Variables
sine.m File Reference

Go to the source code of this file.

Functions

 figure (1) hold on grid on plot(time
 
 fprintf (fileID,'%6.3f %6.3f\n', A)
 
 fprintf (fileID,'%6.3f\n', A)
 
 fclose (fileID)
 

Variables

 sampling_period = 20
 
ms frequency = 1
 
hertz amplitude = 10
 
degrees offset = 0
 
degrees time = [0: 0.020: 10]
 
 out = amplitude*sin(time*2*pi*frequency)+offset
 
out fileID = fopen('trajectory.txt','w')
 
 A = [time
 

Function Documentation

◆ fclose()

fclose ( fileID  )

◆ figure()

figure ( )

◆ fprintf() [1/2]

fprintf ( fileID  ,
'%6.3f %6.3f\n ,
A   
)

◆ fprintf() [2/2]

fprintf ( fileID  ,
'%6.3f\n ,
A   
)

Variable Documentation

◆ A

A = [time

Definition at line 16 of file sine.m.

◆ amplitude

hertz amplitude = 10

Definition at line 3 of file sine.m.

◆ fileID

out fileID = fopen('trajectory.txt','w')

Definition at line 15 of file sine.m.

◆ frequency

ms frequency = 1

Definition at line 2 of file sine.m.

◆ offset

degrees offset = 0

Definition at line 4 of file sine.m.

◆ out

out = amplitude*sin(time*2*pi*frequency)+offset

Definition at line 8 of file sine.m.

◆ sampling_period

sampling_period = 20

Definition at line 1 of file sine.m.

◆ time

degrees time = [0: 0.020: 10]

Definition at line 5 of file sine.m.