You need to define a function repressilatorddt which you would probably store in repressilatorddt.m
Note: you should never have "clear all" in a function, and you should rarely have "clear all" in a script either.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!