matlab: Adapt exampels to new callback style