Flexible transformation with framerate parametrized
Running matlab