Help! How to implement duty factor in matlab?

Hello everybody, I am Brazilian and I am developing a Hexapod. I am using Matlab to generate the trajectories of the joints. I made a code that performs the trajectory of a cycloid to the feet of Hexapod. But I can not understand where I put the duty factor in the code. can anybody help me?

I’m putting my códido attached. About code:

First I show the cycloid in the plane Y and Z and then show the robot’s body trajectory in Y.
Plan_GUI_Cicloide.rar (1.43 KB)

Hi,

You may find the following links useful:
repositorium.sdum.uminho.pt/bitstream/1822/16576/1/C42-Hexapod%20Locomotion_%20a%20Nonlinear%20Dynamical.pdf
cdn.intechweb.org/pdfs/10075.pdf

Sincerely,

Thank you so much! I will read these articles and see if I can implement in matlab.