Matlab callback for onSubScribe