Code covered by the BSD License  

Highlights from
Biohydrodynamics Toolbox

image thumbnail
from Biohydrodynamics Toolbox by Alexandre Munnier
Tool to simulate easily the motion of moving solids or swimming robots in a potential fluid flow.

bht_simple_delay page
bht_simple_delay page
Biohydrodynamics Toolbox    

bht_simple_delay


Utility function.

Syntax

[p,dp,dttp] = bht_simple_delay(t,tau)

Description

Defines a smooth regular (C3) function of time, which grows from 0 to 1 when t goes from 0 to tau then remains constant and equal to 1 for t>tau
Images/delay.jpg
The input variables are:
  • t: a vector of nonnegative real numbers.
  • tau: a positive number. 
The function returns: 
  • p, dp, and d2p which are respectively the function values, the first derivative values and the second derivative values computed at the instants of the vector t.
This function can be used to start smoothly the control of an hinge's angle.

See also

Controls M-File.
2008 - A. Munnier and B. Pincon (Insitut Elie Cartan and INRIA Lorraine, Projet CORIDA, Nancy, France).         

Contact us at files@mathworks.com