matlab: Adapt examples to new callback style