Matlab's client functions